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:
Zhihong Yu 2011-08-04 17:24:14 +00:00
parent 2af2f5dbd9
commit a9031452f7
2 changed files with 4 additions and 1 deletions

View File

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

View File

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