hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject hbase git commit: HBASE-14974 Total number of Regions in Transition number on UI incorrect
Date Wed, 16 Dec 2015 22:13:41 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.2 58ddbe863 -> 0cff6ed74


HBASE-14974 Total number of Regions in Transition number on UI incorrect


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/0cff6ed7
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/0cff6ed7
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/0cff6ed7

Branch: refs/heads/branch-1.2
Commit: 0cff6ed74be8ca738aa0d223fd6317e042100ccf
Parents: 58ddbe8
Author: Mikhail Antonov <antonov@apache.org>
Authored: Wed Dec 16 14:08:30 2015 -0800
Committer: Mikhail Antonov <antonov@apache.org>
Committed: Wed Dec 16 14:13:07 2015 -0800

----------------------------------------------------------------------
 .../hadoop/hbase/tmpl/master/AssignmentManagerStatusTmpl.jamon    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/0cff6ed7/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/AssignmentManagerStatusTmpl.jamon
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/AssignmentManagerStatusTmpl.jamon
b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/AssignmentManagerStatusTmpl.jamon
index 08ed672..a5e4b1a 100644
--- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/AssignmentManagerStatusTmpl.jamon
+++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/AssignmentManagerStatusTmpl.jamon
@@ -51,6 +51,7 @@ for (Map.Entry<String, RegionState> e : rit.entrySet()) {
    }
 }
 
+int totalRITs = rit.size();
 int toRemove = rit.size() - limit;
 int removed = 0;
 if (toRemove > 0) {
@@ -90,7 +91,7 @@ if (toRemove > 0) {
             </%for>
             <tr BGCOLOR="#D7DF01"> <td>Total number of Regions in Transition
for more than <% ritThreshold %> milliseconds</td><td> <% numOfRITOverThreshold
%></td><td></td>
             </tr>
-    <tr> <td> Total number of Regions in Transition</td><td><%
rit.size() %> </td><td></td>
+    <tr> <td> Total number of Regions in Transition</td><td><%
totalRITs %> </td><td></td>
     </table>
     <%if removed > 0 %>
     (<% removed %> more regions in transition not shown)


Mime
View raw message