You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ps...@apache.org on 2019/02/25 15:29:21 UTC

[hbase] branch branch-2.0 updated: HBASE-21942 [UI] requests per second is incorrect in rsgroup page(rsgroup.jsp)

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

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


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 1f716f7  HBASE-21942 [UI] requests per second is incorrect in rsgroup page(rsgroup.jsp)
1f716f7 is described below

commit 1f716f70727e3e6676173691d0758920df32da61
Author: xuqinya <xu...@163.com>
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 <ps...@apache.org>
---
 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>