Description
BlockIndexWriter#writeIntermediateBlock
if (cacheConf != null) { HFileBlock blockForCaching = blockWriter.getBlockForCaching(cacheConf); cacheConf.getBlockCache().cacheBlock(new BlockCacheKey(nameForCaching, beginOffset, true, blockForCaching.getBlockType()), blockForCaching); }
The if condition should be ?
if (cacheConf != null && cacheConf.shouldCacheIndexesOnWrite())