Skip to content

HBASE-29970 SplitSuccess and SplitTime metrics are no longer used at …#8005

Open
liuxiaocs7 wants to merge 1 commit intoapache:branch-2from
liuxiaocs7:HBASE-29970-branch-2
Open

HBASE-29970 SplitSuccess and SplitTime metrics are no longer used at …#8005
liuxiaocs7 wants to merge 1 commit intoapache:branch-2from
liuxiaocs7:HBASE-29970-branch-2

Conversation

@liuxiaocs7
Copy link
Copy Markdown
Member

…RegionServer and Table level (#7866)

…RegionServer and Table level (apache#7866)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
@liuxiaocs7 liuxiaocs7 requested a review from Copilot March 30, 2026 04:12
@liuxiaocs7 liuxiaocs7 added the backport This PR is a back port of some issue or issues already committed to master label Mar 30, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates RegionServer/Table metrics to drop unused split success/time metrics while ensuring split request counts are still tracked (including at table level), per HBASE-29970.

Changes:

  • Remove SplitSuccess and SplitTime metrics from RegionServer and Table metrics sources/interfaces.
  • Update split request recording to pass table name so table-level splitRequestCount can be incremented.
  • Add/extend unit tests to validate splitRequestCount at both RegionServer and table-aggregate levels.

Reviewed changes

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

Show a summary per file
File Description
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/SplitRequest.java Pass table name into split-request metric update.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServer.java Change incrSplitRequest to accept table name and forward to table metrics.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsTable.java Remove table-level split success/time methods now unused.
hbase-hadoop-compat/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerSource.java Remove split time/success API and constants.
hbase-hadoop-compat/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsTableSource.java Remove split time/success API.
hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerSourceImpl.java Remove backing metrics and methods for split time/success.
hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsTableSourceImpl.java Remove backing metrics and methods for split time/success.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestMetricsRegionServer.java Add test to assert server-level splitRequestCount increments.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestMetricsTableAggregate.java Add test to assert table-aggregate splitRequestCount increments only for non-null table.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@liuxiaocs7 liuxiaocs7 requested a review from Apache9 March 30, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a back port of some issue or issues already committed to master

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants