[ 
https://issues.apache.org/jira/browse/HBASE-14936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15048641#comment-15048641
 ] 

Jianwei Cui commented on HBASE-14936:
-------------------------------------

Sorry to reply late. It seems CombinedBlockCache should also overwrite some 
other methods, such as: getHitRatio(), getSumHitCountsPastNPeriods() etc? I 
will update the patch to include these overwrites and test cases.

> CombinedBlockCache should overwrite CacheStats#rollMetricsPeriod()
> ------------------------------------------------------------------
>
>                 Key: HBASE-14936
>                 URL: https://issues.apache.org/jira/browse/HBASE-14936
>             Project: HBase
>          Issue Type: Bug
>          Components: BlockCache
>    Affects Versions: 1.1.2
>            Reporter: Jianwei Cui
>         Attachments: HBASE-14936-trunk.patch
>
>
> It seems CombinedBlockCache should overwrite CacheStats#rollMetricsPeriod() as
> {code}
> public void rollMetricsPeriod() {
>   lruCacheStats.rollMetricsPeriod();
>   bucketCacheStats.rollMetricsPeriod();
> }
> {code}
> otherwise, CombinedBlockCache.getHitRatioPastNPeriods() and 
> CombinedBlockCache.getHitCachingRatioPastNPeriods() will always return 0.



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

Reply via email to