This is an automated email from the ASF dual-hosted git repository.
psomogyi 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 3062618 HBASE-21942 [UI] requests per second is incorrect in rsgroup
page(rsgroup.jsp)
3062618 is described below
commit 3062618ac933970a41dc95f57fc908ccdb365cce
Author: xuqinya <[email protected]>
AuthorDate: Fri Feb 22 10:03:24 2019 +0800
HBASE-21942 [UI] requests per second is incorrect in rsgroup
page(rsgroup.jsp)
Signed-off-by: Peter Somogyi <[email protected]>
---
hbase-server/src/main/resources/hbase-webapps/master/rsgroup.jsp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hbase-server/src/main/resources/hbase-webapps/master/rsgroup.jsp
b/hbase-server/src/main/resources/hbase-webapps/master/rsgroup.jsp
index 0b2b581..d105e10 100644
--- a/hbase-server/src/main/resources/hbase-webapps/master/rsgroup.jsp
+++ b/hbase-server/src/main/resources/hbase-webapps/master/rsgroup.jsp
@@ -147,7 +147,7 @@
<th>Num. Regions</th>
</tr>
<% int totalRegions = 0;
- int totalRequests = 0;
+ int totalRequestsPerSecond = 0;
int inconsistentNodeNum = 0;
String masterVersion = VersionInfo.getVersion();
for (Address server: rsGroupServers) {
@@ -165,7 +165,7 @@
requestsPerSecond = sl.getRequestCountPerSecond();
numRegionsOnline = sl.getRegionMetrics().size();
totalRegions += sl.getRegionMetrics().size();
- totalRequests += sl.getRequestCount();
+ totalRequestsPerSecond += sl.getRequestCountPerSecond();
lastContact = (System.currentTimeMillis() -
sl.getReportTimestamp())/1000;
}
long startcode = serverName.getStartcode();
@@ -198,7 +198,7 @@
<%} else { %>
<td></td>
<%} %>
- <td><%= totalRequests %></td>
+ <td><%= totalRequestsPerSecond %></td>
<td><%= totalRegions %></td>
</tr>
</table>