hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-17431 Incorrect precheck condition in RoundRobinPool#get() - revert due to test failure
Date Fri, 06 Jan 2017 20:13:24 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 d0393bdf2 -> e371b1e72


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/e371b1e7
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e371b1e7
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e371b1e7

Branch: refs/heads/branch-1
Commit: e371b1e72377f1a9cf481cc64294c202d86036ef
Parents: d0393bd
Author: tedyu <yuzhihong@gmail.com>
Authored: Fri Jan 6 12:13:18 2017 -0800
Committer: tedyu <yuzhihong@gmail.com>
Committed: Fri Jan 6 12:13:18 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/e371b1e7/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();


Mime
View raw message