HBASE-14165 The initial size of RWQueueRpcExecutor.queues should be (numWriteQueues + numReadQueues + numScanQueues) (Cui Jianwei)

This commit is contained in:
tedyu 2015-08-19 14:35:09 -07:00
parent ebd34844ce
commit 32b1064c6c
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ public class RWQueueRpcExecutor extends RpcExecutor {
this.readBalancer = getBalancer(numReadQueues); this.readBalancer = getBalancer(numReadQueues);
this.scanBalancer = getBalancer(numScanQueues); this.scanBalancer = getBalancer(numScanQueues);
queues = new ArrayList<BlockingQueue<CallRunner>>(writeHandlersCount + readHandlersCount); queues = new ArrayList<BlockingQueue<CallRunner>>(numWriteQueues + numReadQueues + numScanQueues);
LOG.debug(name + " writeQueues=" + numWriteQueues + " writeHandlers=" + writeHandlersCount + LOG.debug(name + " writeQueues=" + numWriteQueues + " writeHandlers=" + writeHandlersCount +
" readQueues=" + numReadQueues + " readHandlers=" + readHandlersCount + " readQueues=" + numReadQueues + " readHandlers=" + readHandlersCount +
((numScanQueues == 0) ? "" : " scanQueues=" + numScanQueues + ((numScanQueues == 0) ? "" : " scanQueues=" + numScanQueues +