diff --git hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CacheConfig.java hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CacheConfig.java index 223e933..cf98102 100644 --- hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CacheConfig.java +++ hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CacheConfig.java @@ -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);