HBASE-21299 List counts of actual region states in master UI tables section
This commit is contained in:
parent
05f8bea620
commit
a292ab7c87
|
@ -479,18 +479,24 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
|
||||||
<table id="userTables" class="tablesorter table table-striped">
|
<table id="userTables" class="tablesorter table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Namespace</th>
|
<th style="vertical-align: middle;" rowspan="2">Namespace</th>
|
||||||
<th>Name</th>
|
<th style="vertical-align: middle;" rowspan="2">Name</th>
|
||||||
<%if (frags != null) %>
|
<%if (frags != null) %>
|
||||||
<th title="Fragmentation - Will be 0% after a major compaction and fluctuate during normal usage.">Frag.</th>
|
<th title="Fragmentation - Will be 0% after a major compaction and fluctuate during normal usage.">Frag.</th>
|
||||||
</%if>
|
</%if>
|
||||||
<th>State</th>
|
<th style="vertical-align:middle;" rowspan="2">State</th>
|
||||||
<th>Open Regions</th>
|
<th style="text-align: center" colspan="8">Regions</th>
|
||||||
<th>Offline Regions</th>
|
<th style="vertical-align:middle;" rowspan="2">Description</th>
|
||||||
<th>Failed Regions</th>
|
</tr>
|
||||||
<th>Split Regions</th>
|
<tr>
|
||||||
<th>Other (CLOSED, etc.)</th>
|
<th>OPEN</th>
|
||||||
<th>Description</th>
|
<th>OPENING</th>
|
||||||
|
<th>CLOSED</th>
|
||||||
|
<th>CLOSING</th>
|
||||||
|
<th>OFFLINE</th>
|
||||||
|
<th>FAILED</th>
|
||||||
|
<th>SPLIT</th>
|
||||||
|
<th>Other</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -503,6 +509,9 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
|
||||||
master.getAssignmentManager().getRegionStates()
|
master.getAssignmentManager().getRegionStates()
|
||||||
.getRegionByStateOfTable(tableName);
|
.getRegionByStateOfTable(tableName);
|
||||||
int openRegionsCount = tableRegions.get(RegionState.State.OPEN).size();
|
int openRegionsCount = tableRegions.get(RegionState.State.OPEN).size();
|
||||||
|
int openingRegionsCount = tableRegions.get(RegionState.State.OPENING).size();
|
||||||
|
int closedRegionsCount = tableRegions.get(RegionState.State.CLOSED).size();
|
||||||
|
int closingRegionsCount = tableRegions.get(RegionState.State.CLOSING).size();
|
||||||
int offlineRegionsCount = tableRegions.get(RegionState.State.OFFLINE).size();
|
int offlineRegionsCount = tableRegions.get(RegionState.State.OFFLINE).size();
|
||||||
int splitRegionsCount = tableRegions.get(RegionState.State.SPLIT).size();
|
int splitRegionsCount = tableRegions.get(RegionState.State.SPLIT).size();
|
||||||
int failedRegionsCount = tableRegions.get(RegionState.State.FAILED_OPEN).size()
|
int failedRegionsCount = tableRegions.get(RegionState.State.FAILED_OPEN).size()
|
||||||
|
@ -514,7 +523,8 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
|
||||||
// now subtract known states
|
// now subtract known states
|
||||||
otherRegionsCount = otherRegionsCount - openRegionsCount
|
otherRegionsCount = otherRegionsCount - openRegionsCount
|
||||||
- failedRegionsCount - offlineRegionsCount
|
- failedRegionsCount - offlineRegionsCount
|
||||||
- splitRegionsCount;
|
- splitRegionsCount - openingRegionsCount
|
||||||
|
- closedRegionsCount - closingRegionsCount;
|
||||||
</%java>
|
</%java>
|
||||||
<tr>
|
<tr>
|
||||||
<td><% tableName.getNamespaceAsString() %></td>
|
<td><% tableName.getNamespaceAsString() %></td>
|
||||||
|
@ -524,6 +534,9 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
|
||||||
</%if>
|
</%if>
|
||||||
<td><% tableState.getState() %></td>
|
<td><% tableState.getState() %></td>
|
||||||
<td><% openRegionsCount %></td>
|
<td><% openRegionsCount %></td>
|
||||||
|
<td><% openingRegionsCount %></td>
|
||||||
|
<td><% closedRegionsCount %></td>
|
||||||
|
<td><% closingRegionsCount %></td>
|
||||||
<td><% offlineRegionsCount %></td>
|
<td><% offlineRegionsCount %></td>
|
||||||
<td><% failedRegionsCount %></td>
|
<td><% failedRegionsCount %></td>
|
||||||
<td><% splitRegionsCount %></td>
|
<td><% splitRegionsCount %></td>
|
||||||
|
|
Loading…
Reference in New Issue