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,24 +275,26 @@ if (fqtn != null && master.isInitialized()) {
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Enabled</td>
|
<td>Enabled</td>
|
||||||
<td><%= admin.isTableEnabled(table.getName()).get() %></td>
|
<td><%= master.getAssignmentManager().isTableEnabled(table.getName()) %></td>
|
||||||
<td>Is the table enabled</td>
|
<td>Is the table enabled</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Compaction</td>
|
<td>Compaction</td>
|
||||||
<td>
|
<td>
|
||||||
<%
|
<%
|
||||||
try {
|
if (master.getAssignmentManager().isTableEnabled(table.getName())) {
|
||||||
CompactionState compactionState = admin.getCompactionState(table.getName()).get();
|
try {
|
||||||
%>
|
CompactionState compactionState = admin.getCompactionState(table.getName()).get();
|
||||||
<%= compactionState %>
|
%><%= compactionState %><%
|
||||||
<%
|
} catch (Exception e) {
|
||||||
} catch (Exception e) {
|
// Nothing really to do here
|
||||||
// Nothing really to do here
|
for(StackTraceElement element : e.getStackTrace()) {
|
||||||
for(StackTraceElement element : e.getStackTrace()) {
|
%><%= StringEscapeUtils.escapeHtml4(element.toString()) %><%
|
||||||
%><%= StringEscapeUtils.escapeHtml4(element.toString()) %><%
|
}
|
||||||
|
%> Unknown <%
|
||||||
}
|
}
|
||||||
%> Unknown <%
|
} else {
|
||||||
|
%><%= CompactionState.NONE %><%
|
||||||
}
|
}
|
||||||
%>
|
%>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue