From 0f1d3d7af1c9d8d7f43603027fbbe533332d9fb5 Mon Sep 17 00:00:00 2001 From: Andrew Purtell Date: Fri, 4 Dec 2026 01:17:35 -0800 Subject: [PATCH] PHOENIX-8119 HA test clusters should not use the fast path RPC call queue The HA test utility runs each region server with five request handlers. The default call queue of HBase hands a call directly to a parked handler. This fast path handoff can lose a wakeup (HBASE-16063). A call then stays in the queue while all handlers are idle, until another call arrives. Under a light load, the wait can exceed the client RPC timeout, and the test fails. The HA test utility now sets the deadline call queue type. HBase then builds the default executor without the fast path, and an idle handler always takes a queued call. Co-Authored-By: Claude Opus 5.5 --- .../phoenix/jdbc/HighAvailabilityTestingUtility.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/phoenix-core/src/it/java/org/apache/phoenix/jdbc/HighAvailabilityTestingUtility.java b/phoenix-core/src/it/java/org/apache/phoenix/jdbc/HighAvailabilityTestingUtility.java index f87d57cbb92..2568c795fbf 100644 --- a/phoenix-core/src/it/java/org/apache/phoenix/jdbc/HighAvailabilityTestingUtility.java +++ b/phoenix-core/src/it/java/org/apache/phoenix/jdbc/HighAvailabilityTestingUtility.java @@ -56,6 +56,7 @@ import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.client.Admin; import org.apache.hadoop.hbase.ipc.PhoenixRpcSchedulerFactory; +import org.apache.hadoop.hbase.ipc.RpcExecutor; import org.apache.hadoop.hbase.regionserver.RSRpcServices; import org.apache.hadoop.hbase.replication.ReplicationPeerConfig; import org.apache.phoenix.end2end.PhoenixRegionServerEndpointTestImpl; @@ -662,6 +663,13 @@ private static void setUpDefaultHBaseConfig(Configuration conf) { * several mini clusters at the same time without hitting the threads limit imposed by the OS. */ conf.setInt(HConstants.REGION_SERVER_HANDLER_COUNT, 5); + /* + * The fast path handoff of the default call queue can lose a wakeup. A call then stays in the + * queue until a handler polls the queue again. With few handlers and a light load, this wait + * can exceed the client timeouts. The deadline queue type does not use the fast path. + */ + conf.set(RpcExecutor.CALL_QUEUE_TYPE_CONF_KEY, + RpcExecutor.CALL_QUEUE_TYPE_DEADLINE_CONF_VALUE); conf.setInt("hbase.regionserver.metahandler.count", 2); conf.setInt(HConstants.MASTER_HANDLER_COUNT, 2); conf.setInt("dfs.namenode.handler.count", 2);