Skip to content

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

Open
liuxiaocs7 wants to merge 1 commit into
apache:masterfrom
liuxiaocs7:HBASE-30343
Open

HBASE-30343 Per-table avgStoreFileAge overwrites instead of accumulat…#8572
liuxiaocs7 wants to merge 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.

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.

2 participants