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 17:07:09 UTC
hbase git commit: HBASE-17431 Incorrect precheck condition in
RoundRobinPool#get() (Jan Hentschel)
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 <yu...@gmail.com>
Authored: Fri Jan 6 09:07:02 2017 -0800
Committer: tedyu <yu...@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();