diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RWQueueRpcExecutor.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RWQueueRpcExecutor.java index 7b28e74248d..7ba2442f4ad 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RWQueueRpcExecutor.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RWQueueRpcExecutor.java @@ -135,7 +135,7 @@ public class RWQueueRpcExecutor extends RpcExecutor { this.readBalancer = getBalancer(numReadQueues); this.scanBalancer = getBalancer(numScanQueues); - queues = new ArrayList>(writeHandlersCount + readHandlersCount); + queues = new ArrayList>(numWriteQueues + numReadQueues + numScanQueues); LOG.debug(name + " writeQueues=" + numWriteQueues + " writeHandlers=" + writeHandlersCount + " readQueues=" + numReadQueues + " readHandlers=" + readHandlersCount + ((numScanQueues == 0) ? "" : " scanQueues=" + numScanQueues +