[
https://issues.apache.org/jira/browse/HBASE-4466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mikhail Bautin resolved HBASE-4466.
-----------------------------------
Resolution: Fixed
This is resolved in HBASE-4496.
> Fix accounting of the number of blocks read for the one-level index case
> ------------------------------------------------------------------------
>
> Key: HBASE-4466
> URL: https://issues.apache.org/jira/browse/HBASE-4466
> Project: HBase
> Issue Type: Improvement
> Reporter: Kannan Muthukkaruppan
> Assignee: Mikhail Bautin
>
> In HFileBlockIndex.seekToDataBlock if the current block is the same as the
> requested block, then in the 1-level index case, we were read block from
> cache again. Although this would be a cache hit, it unnecessarily increases
> the block cache read count and block cache hit count, and also makes it
> harder to keep the accounting straight for tests like TestBlocksRead
> (introduced in HBASE-4450).
> Basically, even in the 1-level index case, in
> HFileBlockIndex.seekToDataBlock(), if currentBlock.getOffset() ==
> currentOffset, we can avoid looking up the block in cache.
> Assigning to Mikhail (he's already fixed this in our internal branch).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira