Sigma-Ma opened a new pull request, #8940: URL: https://github.com/apache/hbase/pull/8940
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? ```bash mvn -B -ntp -pl hbase-server -am -PrunDevTests -Dtest=TestMetricsWALSourceImpl,TestMetricsWAL,TestMetricsWALTableLifecycle,TestMultiVersionConcurrencyControl,TestMultiVersionConcurrencyControlBasic,TestWALActionsListener,TestLogRollingNoCluster -Dsurefire.rerunFailingTestsCount=0 test ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
