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

This commit is contained in:
tedyu 2017-01-06 12:13:18 -08:00
parent d0393bdf28
commit e371b1e723
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();