HBASE-4150 Potentially too many connections may be opened if ThreadLocalPool
or RoundRobinPool is used git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1153938 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2af2f5dbd9
commit
a9031452f7
|
@ -185,6 +185,8 @@ Release 0.91.0 - Unreleased
|
|||
HBASE-4148 HFileOutputFormat doesn't fill in TIMERANGE_KEY metadata (Jonathan Hsieh)
|
||||
HBASE-4003 Cleanup Calls Conservatively On Timeout (Karthick)
|
||||
HBASE-3857 Fix TestHFileBlock.testBlockHeapSize test failure (Mikhail)
|
||||
HBASE-4150 Potentially too many connections may be opened if ThreadLocalPool
|
||||
or RoundRobinPool is used
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-3290 Max Compaction Size (Nicolas Spiegelberg via Stack)
|
||||
|
|
|
@ -397,7 +397,8 @@ public class PoolMap<K, V> implements Map<K, V> {
|
|||
poolSizes.put(this, poolSize = new AtomicInteger(0));
|
||||
}
|
||||
if (poolSize.intValue() >= maxSize) {
|
||||
return null;
|
||||
throw new IllegalStateException("poolSize ("+poolSize.intValue()+
|
||||
") has reached " + maxSize);
|
||||
}
|
||||
poolSize.incrementAndGet();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue