HBASE-11433 LruBlockCache does not respect its configurable parameters
This commit is contained in:
parent
d797fc872f
commit
cfba8ccbad
|
@ -541,7 +541,7 @@ public class CacheConfig {
|
|||
}
|
||||
LOG.info("Allocating LruBlockCache size=" +
|
||||
StringUtils.byteDesc(lruCacheSize) + ", blockSize=" + StringUtils.byteDesc(blockSize));
|
||||
LruBlockCache lruCache = new LruBlockCache(lruCacheSize, blockSize);
|
||||
LruBlockCache lruCache = new LruBlockCache(lruCacheSize, blockSize, true, conf);
|
||||
lruCache.setVictimCache(bucketCache);
|
||||
if (bucketCache != null && combinedWithLru) {
|
||||
GLOBAL_BLOCK_CACHE_INSTANCE = new CombinedBlockCache(lruCache, bucketCache);
|
||||
|
|
Loading…
Reference in New Issue