d-c-manning commented on code in PR #5081:
URL: https://github.com/apache/hbase/pull/5081#discussion_r1125212280


##########
hbase-client/src/main/java/org/apache/hadoop/hbase/client/MetricsConnection.java:
##########
@@ -443,6 +447,15 @@ protected Ratio getRatio() {
     this.nsLookups = registry.counter(name(this.getClass(), NS_LOOKUPS, 
scope));
     this.nsLookupsFailed = registry.counter(name(this.getClass(), 
NS_LOOKUPS_FAILED, scope));
 
+    this.userRegionLockTimeoutCount =
+      registry.counter(name(this.getClass(), "userRegionLockTimeoutCount", 
scope));
+    this.userRegionLockWaitingTimer =
+      registry.timer(name(this.getClass(), "userRegionLockWaitingTimer", 
scope));
+    this.userRegionLockHeldTimer =
+      registry.timer(name(this.getClass(), "userRegionLockHeldTimer", scope));

Review Comment:
   nit: to match the names of the other timers, perhaps
   ```suggestion
         registry.timer(name(this.getClass(), "userRegionLockWaitDurationMs", 
scope));
       this.userRegionLockHeldTimer =
         registry.timer(name(this.getClass(), "userRegionLockHeldDurationMs", 
scope));
   ```
   
   (Although, I'm confused - is there anything that guarantees we get 
Milliseconds when we read out the metric? Or is it in nanoseconds? Other timer 
names in this file say `Ms` but now I have my doubts. 🤔 )
   
   (EDIT: I see that milliseconds is the default reporting for `JmxReporter` as 
called in `this.reporter = JmxReporter.forRegistry(this.registry).build();`)



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