Skip to content

HBASE-30447 Table-level metrics can stop updating until the RegionServer restarts - #8730

Open
d-c-manning wants to merge 2 commits into
apache:masterfrom
d-c-manning:HBASE-30447
Open

d-c-manning wants to merge 2 commits into
apache:masterfrom
d-c-manning:HBASE-30447

Conversation

@d-c-manning

@d-c-manning d-c-manning commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

HBASE-30447

It is possible for table-level metrics from MetricsTableWrapperAggregateImpl.java to stop updating, and continually produce the last static value until RegionServer restart.

The cause is not known but the most likely result is some type of NullPointerException in the run method.

Because an exception is not caught in the run method, the ScheduledFutureTask will no longer be scheduled after the uncaught exception is thrown.

There is no logging, so the cause of us seeing this behavior is not currently known. But with this issue fix, we could have logging to identify the source of the exception, which could lead to other bug fixes.

We didn't have region-level metrics enabled at the time, but since MetricsRegionWrapperImpl.java has a similar pattern, I make a similar fix here.

MetricsRegionServerWrapperImpl.java already has this fix in place, see commit 999ae69 from HBASE-14891

Due to the try-catch indentation, the fix is best visualized with ignoring whitespace, i.e. https://github.com/apache/hbase/pull/8730/changes?w=1

Relates to #1729

@virajjasani
virajjasani self-requested a review October 1, 2026 20:45
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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