Xiao Liu created HBASE-30343:
--------------------------------

             Summary: Per-table avgStoreFileAge overwrites instead of 
accumulating store ages
                 Key: HBASE-30343
                 URL: https://issues.apache.org/jira/browse/HBASE-30343
             Project: HBase
          Issue Type: Bug
            Reporter: Xiao Liu
            Assignee: Xiao Liu
             Fix For: 4.0.0-alpha-1, 2.7.0, 3.1.0, 3.0.1, 2.6.8, 2.5.17


In MetricsTableWrapperAggregateImpl.run(), the per-store loop assigns
totalStoreFileAge with '=' instead of '+=', while its divisor storeFileCount
accumulates with '+='. So getAvgStoreFileAge() (= totalStoreFileAge /
storeFileCount) only reflects the last store, under-reporting the metric for
any table with more than one store/region.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to