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

This commit is contained in:
tedyu 2017-01-06 12:12:49 -08:00
parent 6d48eb06c9
commit 4c98f97c31
1 changed files with 1 additions and 1 deletions

View File

@ -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();