[
https://issues.apache.org/jira/browse/HBASE-30343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Work on HBASE-30343 started by Xiao Liu.
----------------------------------------
> 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
> Priority: Major
> 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)