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:12:36 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 d2fb7e614 -> 42518fa64


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/42518fa6
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/42518fa6
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/42518fa6

Branch: refs/heads/branch-1
Commit: 42518fa646374b1ac7f34663e4a57328e64a142e
Parents: d2fb7e6
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:11:36 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/42518fa6/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