hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-21232 Show table state in Tables view on Master home page
Date Wed, 26 Sep 2018 17:57:31 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-2.1 504286d55 -> 5169cfc8c


HBASE-21232 Show table state in Tables view on Master home page


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/5169cfc8
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/5169cfc8
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/5169cfc8

Branch: refs/heads/branch-2.1
Commit: 5169cfc8c395852f2b8e8885d5044130995e49ea
Parents: 504286d
Author: Michael Stack <stack@apache.org>
Authored: Tue Sep 25 18:08:08 2018 -0700
Committer: Michael Stack <stack@apache.org>
Committed: Wed Sep 26 10:57:23 2018 -0700

----------------------------------------------------------------------
 .../hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon       | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/5169cfc8/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon
----------------------------------------------------------------------
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 4085193..f48a998 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
@@ -44,6 +44,7 @@ org.apache.hadoop.hbase.ServerName;
 org.apache.hadoop.hbase.TableName;
 org.apache.hadoop.hbase.client.Admin;
 org.apache.hadoop.hbase.client.MasterSwitchType;
+org.apache.hadoop.hbase.client.TableState;
 org.apache.hadoop.hbase.master.assignment.AssignmentManager;
 org.apache.hadoop.hbase.master.DeadServer;
 org.apache.hadoop.hbase.master.HMaster;
@@ -464,21 +465,23 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
 <table class="table table-striped">
     <tr>
         <th>Namespace</th>
-        <th>Table Name</th>
+        <th>Name</th>
         <%if (frags != null) %>
             <th title="Fragmentation - Will be 0% after a major compaction and fluctuate
during normal usage.">Frag.</th>
         </%if>
-        <th>Online Regions</th>
+        <th>State</th>
+        <th>Open Regions</th>
         <th>Offline Regions</th>
         <th>Failed Regions</th>
         <th>Split Regions</th>
-        <th>Other Regions</th>
+        <th>Other (CLOSED, etc.)</th>
         <th>Description</th>
     </tr>
     <%for TableDescriptor desc : tables%>
     <%java>
       HTableDescriptor htDesc = new HTableDescriptor(desc);
       TableName tableName = htDesc.getTableName();
+      TableState tableState = master.getTableStateManager().getTableState(tableName);
       Map<RegionState.State, List<RegionInfo>> tableRegions =
           master.getAssignmentManager().getRegionStates()
             .getRegionByStateOfTable(tableName);
@@ -502,6 +505,7 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
         <%if (frags != null) %>
             <td align="center"><% frags.get(tableName.getNameAsString()) != null
? frags.get(tableName.getNameAsString()).intValue() + "%" : "n/a" %></td>
         </%if>
+        <td><% tableState.getState() %></td>
         <td><% openRegionsCount %></td>
         <td><% offlineRegionsCount %></td>
         <td><% failedRegionsCount %></td>


Mime
View raw message