From 9d6afa9d7235e47c96e598ef7a71ece6fd4cbe76 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Thu, 11 Oct 2018 21:50:14 -0700 Subject: [PATCH] HBASE-21299 List counts of actual region states in master UI tables section --- .../hbase/tmpl/master/MasterStatusTmpl.jamon | 33 +++++++++++++------ 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon index 31cb5fab6d9..3180c56fcc3 100644 --- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon +++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon @@ -479,18 +479,24 @@ AssignmentManager assignmentManager = master.getAssignmentManager(); - - + + <%if (frags != null) %> - - - - - - - + + + + + + + + + + + + + @@ -503,6 +509,9 @@ AssignmentManager assignmentManager = master.getAssignmentManager(); master.getAssignmentManager().getRegionStates() .getRegionByStateOfTable(tableName); 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 splitRegionsCount = tableRegions.get(RegionState.State.SPLIT).size(); int failedRegionsCount = tableRegions.get(RegionState.State.FAILED_OPEN).size() @@ -514,7 +523,8 @@ AssignmentManager assignmentManager = master.getAssignmentManager(); // now subtract known states otherRegionsCount = otherRegionsCount - openRegionsCount - failedRegionsCount - offlineRegionsCount - - splitRegionsCount; + - splitRegionsCount - openingRegionsCount + - closedRegionsCount - closingRegionsCount; @@ -524,6 +534,9 @@ AssignmentManager assignmentManager = master.getAssignmentManager(); + + +
NamespaceNameNamespaceNameFrag. StateOpen RegionsOffline RegionsFailed RegionsSplit RegionsOther (CLOSED, etc.)DescriptionStateRegionsDescription
OPENOPENINGCLOSEDCLOSINGOFFLINEFAILEDSPLITOther
<% tableName.getNamespaceAsString() %> <% tableState.getState() %> <% openRegionsCount %><% openingRegionsCount %><% closedRegionsCount %><% closingRegionsCount %> <% offlineRegionsCount %> <% failedRegionsCount %> <% splitRegionsCount %>