Yiran-wu commented on a change in pull request #1069: HBASE-23708 Support 
metrics for region traffic
URL: https://github.com/apache/hbase/pull/1069#discussion_r368799499
 
 

 ##########
 File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegion.java
 ##########
 @@ -44,31 +44,48 @@ public void close() {
     source.close();
   }
 
-  public void updatePut() {
+  public void updatePut(final long size) {
     source.updatePut();
+    source.updatePutBytes(size);
+    source.updateReceivedBytes(size);
 
 Review comment:
   Received contains all write operations such as 
increment/append/put/bulkload, putBytes consists of its own

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to