You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2017/01/06 20:12:56 UTC

hbase git commit: HBASE-17431 Incorrect precheck condition in RoundRobinPool#get() - revert due to test failure

Repository: hbase
Updated Branches:
  refs/heads/master 6d48eb06c -> 4c98f97c3


HBASE-17431 Incorrect precheck condition in RoundRobinPool#get() - revert due to test failure


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/4c98f97c
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/4c98f97c
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/4c98f97c

Branch: refs/heads/master
Commit: 4c98f97c318995593bbe8b67ba856003cb5ed463
Parents: 6d48eb0
Author: tedyu <yu...@gmail.com>
Authored: Fri Jan 6 12:12:49 2017 -0800
Committer: tedyu <yu...@gmail.com>
Committed: Fri Jan 6 12:12:49 2017 -0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/util/PoolMap.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/4c98f97c/hbase-client/src/main/java/org/apache/hadoop/hbase/util/PoolMap.java
----------------------------------------------------------------------
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 f89215b..b683fcc 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<K, V> implements Map<K, V> {
 
     @Override
     public R get() {
-      if (super.size() <= 0) {
+      if (super.size() < maxSize) {
         return null;
       }
       nextResource %= super.size();