You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by gx...@apache.org on 2019/10/16 08:23:23 UTC

[hbase] branch branch-2 updated: HBASE-20626 Change the value of "Requests Per Second" on WEBUI

This is an automated email from the ASF dual-hosted git repository.

gxcheng pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2 by this push:
     new f620e1d  HBASE-20626 Change the value of "Requests Per Second" on WEBUI
f620e1d is described below

commit f620e1dae4a0e4b544ee1b5d45d964d8894327f5
Author: Guangxu Cheng <gu...@gmail.com>
AuthorDate: Wed Oct 16 14:25:14 2019 +0800

    HBASE-20626 Change the value of "Requests Per Second" on WEBUI
---
 .../hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java
index 16fce3c..78d7cff 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java
@@ -783,7 +783,7 @@ class MetricsRegionServerWrapperImpl
         }
         // If we've time traveled keep the last requests per second.
         if ((currentTime - lastRan) > 0) {
-          long currentRequestCount = getTotalRequestCount();
+          long currentRequestCount = getTotalRowActionRequestCount();
           requestsPerSecond = (currentRequestCount - lastRequestCount) /
               ((currentTime - lastRan) / 1000.0);
           lastRequestCount = currentRequestCount;