HBASE-19942 Fix flaky TestSimpleRpcScheduler
This commit is contained in:
parent
380083e7d3
commit
a5b86dd77a
|
@ -145,9 +145,9 @@ public abstract class RpcExecutor {
|
||||||
queueClass = LinkedBlockingQueue.class;
|
queueClass = LinkedBlockingQueue.class;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG.info("RpcExecutor " + name + " using " + callQueueType
|
LOG.info("RpcExecutor " + this.name + " using " + this.queueClass
|
||||||
+ " as call queue; numCallQueues=" + numCallQueues + "; maxQueueLength=" + maxQueueLength
|
+ " as call queue; numCallQueues=" + this.numCallQueues + "; maxQueueLength="
|
||||||
+ "; handlerCount=" + handlerCount);
|
+ maxQueueLength + "; handlerCount=" + this.handlerCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected int computeNumCallQueues(final int handlerCount, final float callQueuesHandlersFactor) {
|
protected int computeNumCallQueues(final int handlerCount, final float callQueuesHandlersFactor) {
|
||||||
|
|
|
@ -428,6 +428,8 @@ public class TestSimpleRpcScheduler {
|
||||||
|
|
||||||
schedConf.setInt(HConstants.REGION_SERVER_HANDLER_COUNT, 0);
|
schedConf.setInt(HConstants.REGION_SERVER_HANDLER_COUNT, 0);
|
||||||
schedConf.setInt("hbase.ipc.server.max.callqueue.length", 5);
|
schedConf.setInt("hbase.ipc.server.max.callqueue.length", 5);
|
||||||
|
schedConf.set(RpcExecutor.CALL_QUEUE_TYPE_CONF_KEY,
|
||||||
|
RpcExecutor.CALL_QUEUE_TYPE_DEADLINE_CONF_VALUE);
|
||||||
|
|
||||||
PriorityFunction priority = mock(PriorityFunction.class);
|
PriorityFunction priority = mock(PriorityFunction.class);
|
||||||
when(priority.getPriority(any(), any(), any())).thenReturn(HConstants.NORMAL_QOS);
|
when(priority.getPriority(any(), any(), any())).thenReturn(HConstants.NORMAL_QOS);
|
||||||
|
|
Loading…
Reference in New Issue