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);