Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
Loading