HBASE-11433 LruBlockCache does not respect its configurable parameters

This commit is contained in:
stack 2014-06-30 11:22:44 -07:00
parent d797fc872f
commit cfba8ccbad
1 changed files with 1 additions and 1 deletions

View File

@ -541,7 +541,7 @@ public class CacheConfig {
} }
LOG.info("Allocating LruBlockCache size=" + LOG.info("Allocating LruBlockCache size=" +
StringUtils.byteDesc(lruCacheSize) + ", blockSize=" + StringUtils.byteDesc(blockSize)); StringUtils.byteDesc(lruCacheSize) + ", blockSize=" + StringUtils.byteDesc(blockSize));
LruBlockCache lruCache = new LruBlockCache(lruCacheSize, blockSize); LruBlockCache lruCache = new LruBlockCache(lruCacheSize, blockSize, true, conf);
lruCache.setVictimCache(bucketCache); lruCache.setVictimCache(bucketCache);
if (bucketCache != null && combinedWithLru) { if (bucketCache != null && combinedWithLru) {
GLOBAL_BLOCK_CACHE_INSTANCE = new CombinedBlockCache(lruCache, bucketCache); GLOBAL_BLOCK_CACHE_INSTANCE = new CombinedBlockCache(lruCache, bucketCache);