HBASE-23005 Table UI showed exception message when table is disabled (#602)
Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
parent
e9e6202f9c
commit
3cfcee9eda
|
@ -275,18 +275,17 @@ if (fqtn != null && master.isInitialized()) {
|
|||
</tr>
|
||||
<tr>
|
||||
<td>Enabled</td>
|
||||
<td><%= admin.isTableEnabled(table.getName()).get() %></td>
|
||||
<td><%= master.getAssignmentManager().isTableEnabled(table.getName()) %></td>
|
||||
<td>Is the table enabled</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Compaction</td>
|
||||
<td>
|
||||
<%
|
||||
if (master.getAssignmentManager().isTableEnabled(table.getName())) {
|
||||
try {
|
||||
CompactionState compactionState = admin.getCompactionState(table.getName()).get();
|
||||
%>
|
||||
<%= compactionState %>
|
||||
<%
|
||||
%><%= compactionState %><%
|
||||
} catch (Exception e) {
|
||||
// Nothing really to do here
|
||||
for(StackTraceElement element : e.getStackTrace()) {
|
||||
|
@ -294,6 +293,9 @@ if (fqtn != null && master.isInitialized()) {
|
|||
}
|
||||
%> Unknown <%
|
||||
}
|
||||
} else {
|
||||
%><%= CompactionState.NONE %><%
|
||||
}
|
||||
%>
|
||||
</td>
|
||||
<td>Is the table compacting</td>
|
||||
|
|
Loading…
Reference in New Issue