Skip to content

HBASE-30579 Reclaim per-table WAL metrics after the last region closes - #8940

Open
Sigma-Ma wants to merge 1 commit into
apache:masterfrom
Sigma-Ma:HBASE-30579-reclaim-per-table-WAL-metrics
Open

Sigma-Ma wants to merge 1 commit into
apache:masterfrom
Sigma-Ma:HBASE-30579-reclaim-per-table-WAL-metrics

Conversation

@Sigma-Ma

Copy link
Copy Markdown
Contributor

JIRA: https://issues.apache.org/jira/browse/HBASE-30579

What changes were proposed in this pull request?

Remove a table’s WAL append count and size metrics when its last region closes on a RegionServer. Keep both counters while another region of the table is still open, and remove both JMX attributes on cleanup. Late WAL callbacks from a closed region cannot update the counters of a recreated table.

Why are the changes needed?

Deleted tables leave their WAL metrics behind on RegionServers. Workloads that create and drop date-suffixed tables accumulate stale metrics, and recreating a table with the same name inherits its old counts.

How was this patch tested?

mvn -B -ntp -pl hbase-server -am -PrunDevTests -Dtest=TestMetricsWALSourceImpl,TestMetricsWAL,TestMetricsWALTableLifecycle,TestMultiVersionConcurrencyControl,TestMultiVersionConcurrencyControlBasic,TestWALActionsListener,TestLogRollingNoCluster -Dsurefire.rerunFailingTestsCount=0 test

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.

1 participant