Skip to content

HBASE-30343 Per-table avgStoreFileAge overwrites instead of accumulat… - #8572

Merged
liuxiaocs7 merged 1 commit into
apache:masterfrom
liuxiaocs7:HBASE-30343
Aug 27, 2026
Merged

HBASE-30343 Per-table avgStoreFileAge overwrites instead of accumulat…#8572
liuxiaocs7 merged 1 commit into
apache:masterfrom
liuxiaocs7:HBASE-30343

Conversation

@liuxiaocs7

Copy link
Copy Markdown
Member

…ing store ages

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes per-table avgStoreFileAge aggregation in RegionServer table metrics so that store-file age totals are accumulated across all stores (instead of being overwritten), and adds a focused unit test to prevent regressions (HBASE-30343).

Changes:

  • Accumulate totalStoreFileAge across stores using += during metrics aggregation.
  • Add a new unit test validating avg/max/min store file age and store/region counts across multiple regions/stores.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsTableWrapperAggregateImpl.java Fixes store-file age total aggregation to correctly accumulate per-store contributions per table.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestMetricsTableWrapperAggregate.java Adds regression test ensuring per-table avg store-file age aggregates correctly across multiple stores/regions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@guluo2016 guluo2016 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

@liuxiaocs7

Copy link
Copy Markdown
Member Author

Thanks @guluo2016 for the reviewing!

@liuxiaocs7
liuxiaocs7 merged commit 48931fc into apache:master Aug 27, 2026
12 of 13 checks passed
liuxiaocs7 added a commit that referenced this pull request Aug 28, 2026
…ing store ages (#8572)

Signed-off by: Peng Lu <lupeng@apache.org>
liuxiaocs7 added a commit that referenced this pull request Aug 28, 2026
…ing store ages (#8572)

Signed-off by: Peng Lu <lupeng@apache.org>
liuxiaocs7 added a commit that referenced this pull request Aug 28, 2026
…ing store ages (#8572)

Signed-off by: Peng Lu <lupeng@apache.org>
liuxiaocs7 added a commit that referenced this pull request Aug 28, 2026
…ing store ages (#8572)

Signed-off by: Peng Lu <lupeng@apache.org>
liuxiaocs7 added a commit that referenced this pull request Aug 28, 2026
…ing store ages (#8572)

Signed-off by: Peng Lu <lupeng@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants