From 93a97ca4756a037e4e979c7ea6ee5890d5c692cc Mon Sep 17 00:00:00 2001 From: Guangxu Cheng Date: Wed, 16 Oct 2019 14:25:14 +0800 Subject: [PATCH] HBASE-20626 Change the value of "Requests Per Second" on WEBUI Conflicts: hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java --- .../hbase/regionserver/MetricsRegionServerWrapperImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 cb2e2d7ca57..061267d8d32 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 @@ -697,9 +697,9 @@ class MetricsRegionServerWrapperImpl // If we've time traveled keep the last requests per second. if ((currentTime - lastRan) > 0) { - long currentRequestCount = getTotalRequestCount(); - requestsPerSecond = - (currentRequestCount - lastRequestCount) / ((currentTime - lastRan) / 1000.0); + long currentRequestCount = getTotalRowActionRequestCount(); + requestsPerSecond = (currentRequestCount - lastRequestCount) / + ((currentTime - lastRan) / 1000.0); lastRequestCount = currentRequestCount; long intervalReadRequestsCount = tempReadRequestsCount - lastReadRequestsCount;