hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jianwei Cui (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-14936) CombinedBlockCache should overwrite CacheStats#rollMetricsPeriod()
Date Mon, 07 Dec 2015 09:55:10 GMT
Jianwei Cui created HBASE-14936:
-----------------------------------

             Summary: 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


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)

Mime
View raw message