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

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

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

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


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

commit 9d117560fc5b414ac866231ecd8a5113c56f2fac
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 d9504d7..5797e30 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
@@ -778,7 +778,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;