diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/util/PoolMap.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/util/PoolMap.java index b683fcc9e4e..f89215b1ae8 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/util/PoolMap.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/util/PoolMap.java @@ -360,7 +360,7 @@ public class PoolMap implements Map { @Override public R get() { - if (super.size() < maxSize) { + if (super.size() <= 0) { return null; } nextResource %= super.size();