HBASE-17431 Incorrect precheck condition in RoundRobinPool#get() - revert due to test failure
This commit is contained in:
parent
6d48eb06c9
commit
4c98f97c31
|
@ -360,7 +360,7 @@ public class PoolMap<K, V> implements Map<K, V> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public R get() {
|
public R get() {
|
||||||
if (super.size() <= 0) {
|
if (super.size() < maxSize) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
nextResource %= super.size();
|
nextResource %= super.size();
|
||||||
|
|
Loading…
Reference in New Issue