From 42518fa646374b1ac7f34663e4a57328e64a142e Mon Sep 17 00:00:00 2001 From: Mikhail Antonov Date: Wed, 16 Dec 2015 14:08:30 -0800 Subject: [PATCH] HBASE-14974 Total number of Regions in Transition number on UI incorrect --- .../hadoop/hbase/tmpl/master/AssignmentManagerStatusTmpl.jamon | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 08ed672376d..a5e4b1a3e85 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 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) { Total number of Regions in Transition for more than <% ritThreshold %> milliseconds <% numOfRITOverThreshold %> - Total number of Regions in Transition<% rit.size() %> + Total number of Regions in Transition<% totalRITs %> <%if removed > 0 %> (<% removed %> more regions in transition not shown)