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() (Jan Hentschel)
Date Fri, 06 Jan 2017 17:07:09 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 910e885a7 -> 6d48eb06c


HBASE-17431 Incorrect precheck condition in RoundRobinPool#get() (Jan Hentschel)


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

Branch: refs/heads/master
Commit: 6d48eb06c9cd50259e3137eea8e3554d190f678d
Parents: 910e885
Author: tedyu <yuzhihong@gmail.com>
Authored: Fri Jan 6 09:07:02 2017 -0800
Committer: tedyu <yuzhihong@gmail.com>
Committed: Fri Jan 6 09:07:02 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/6d48eb06/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 b683fcc..f89215b 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() < maxSize) {
+      if (super.size() <= 0) {
         return null;
       }
       nextResource %= super.size();


Mime
View raw message