thangTang commented on code in PR #5072:
URL: https://github.com/apache/hbase/pull/5072#discussion_r1125609456
##########
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServer.java:
##########
@@ -122,89 +101,79 @@ public MetricsRegionServerWrapper
getRegionServerWrapper() {
return regionServerWrapper;
}
- public void updatePutBatch(TableName tn, long t) {
- if (tableMetrics != null && tn != null) {
- tableMetrics.updatePutBatch(tn, t);
- }
+ public void updatePutBatch(HRegion region, long t) {
+ Optional.ofNullable(region).ifPresent(r ->
Optional.ofNullable(r.getMetricsTableRequests())
Review Comment:
Oh yes, my fault...
--
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]