Skip to content

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

Open
liuxiaocs7 wants to merge 1 commit intoapache:masterfrom
liuxiaocs7:HBASE-29970
Open

HBASE-29970 SplitSuccess and SplitTime metrics are no longer used at …#7866
liuxiaocs7 wants to merge 1 commit intoapache:masterfrom
liuxiaocs7:HBASE-29970

Conversation

@liuxiaocs7
Copy link
Contributor

…RegionServer and Table level

@liuxiaocs7
Copy link
Contributor Author

Hi, @Apache9, WDYT, more details see: HBASE-29970

Comment on lines -219 to 217

public void incrSplitSuccess() {
serverSource.incrSplitSuccess();
if (table != null) {
metricsTable.incrSplitRequest(table);
}
}
Copy link
Contributor Author

@liuxiaocs7 liuxiaocs7 Mar 6, 2026

Choose a reason for hiding this comment

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

this is the addition

Copy link

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

Removes unused RegionServer- and table-level split metrics (SplitSuccess and SplitTime) as part of HBASE-29970, and updates split-request recording to optionally attribute split requests to the originating table.

Changes:

  • Remove SplitSuccess and SplitTime metrics from RegionServer and table metrics sources/interfaces.
  • Update SplitRequest to record split requests with a table name so table-aggregate split-request counters can be incremented.
  • Add unit tests covering 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/test/java/org/apache/hadoop/hbase/regionserver/TestMetricsTableAggregate.java Adds a test verifying table-aggregate splitRequestCount increments only when a table is provided.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestMetricsRegionServer.java Adds a test verifying RegionServer splitRequestCount increments.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/SplitRequest.java Passes the parent table name into metrics when recording a split request.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsTable.java Removes table-level split success/time update APIs, keeping split-request only.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServer.java Removes split success/time APIs and changes split-request API to accept an optional table for table-level attribution.
hbase-hadoop-compat/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsTableSourceImpl.java Removes split success and split time metric registration/deregistration and related methods.
hbase-hadoop-compat/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsTableSource.java Removes split success/time methods from the table metrics source interface.
hbase-hadoop-compat/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerSourceImpl.java Removes split success and split time metric registration and related methods.
hbase-hadoop-compat/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerSource.java Removes split success/time constants and methods, keeping split-request only.

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

You can also share your feedback on Copilot code review. Take the survey.

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.

3 participants