hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Heng Chen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-15844) We should respect hfile.block.index.cacheonwrite when write intermediate index Block
Date Tue, 17 May 2016 07:58:12 GMT
Heng Chen created HBASE-15844:
---------------------------------

             Summary: We should respect hfile.block.index.cacheonwrite when write intermediate
index Block
                 Key: HBASE-15844
                 URL: https://issues.apache.org/jira/browse/HBASE-15844
             Project: HBase
          Issue Type: Bug
            Reporter: Heng Chen


{code: title=BlockIndexWriter#writeIntermediateBlock}
      if (cacheConf != null) {
        HFileBlock blockForCaching = blockWriter.getBlockForCaching(cacheConf);
        cacheConf.getBlockCache().cacheBlock(new BlockCacheKey(nameForCaching,
          beginOffset, true, blockForCaching.getBlockType()), blockForCaching);
      }
{code}

The if condition should be ?
{code}
if (cacheConf != null && cacheConf.shouldCacheIndexesOnWrite()) 
{code} 





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message