From d0393bdf28860bb1ede57420e54baa748f69b3b6 Mon Sep 17 00:00:00 2001 From: tedyu Date: Fri, 6 Jan 2017 09:08:55 -0800 Subject: [PATCH] HBASE-17431 Incorrect precheck condition in RoundRobinPool#get() (Jan Hentschel) --- .../src/main/java/org/apache/hadoop/hbase/util/PoolMap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();