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

This commit is contained in:
Mikhail Antonov 2015-12-16 14:08:30 -08:00
parent 6a0159046e
commit e965b614b3
1 changed files with 2 additions and 1 deletions

View File

@ -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) {
@ -92,7 +93,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)