Sigma-Ma opened a new pull request, #8689:
URL: https://github.com/apache/hbase/pull/8689

   **What changes were proposed in this pull request?**
   
   Backport #8563 to branch-2, adding the overall `oldestProcedureAge` gauge 
and per-procedure-type gauges.
   
   The implementation uses `getProcedures()` and excludes finished procedures. 
The backport places the metrics implementation in `hbase-hadoop2-compat` and 
uses Java 8-compatible collection APIs in the test.
   
   **Why are the changes needed?**
   
   These metrics help identify long-running master procedures on branch-2. 
Per-type gauges allow operators to monitor different procedure types 
independently.
   
   **How was this patch tested?**
   
   Passed on JDK 8:
   
   `mvn -pl hbase-server -am 
-Dtest=TestOldestProcedureMetrics,TestMetricsMasterProcSourceImpl,TestMasterMetrics
 -Dsurefire.failIfNoSpecifiedTests=false clean test`
   
   Passed on JDK 17:
   
   `mvn -pl hbase-hadoop-compat,hbase-hadoop2-compat,hbase-server 
spotless:check`.


-- 
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]

Reply via email to