File tree Expand file tree Collapse file tree
hbase-server/src/main/resources/hbase-webapps/master Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -275,24 +275,26 @@ if (fqtn != null && master.isInitialized()) {
275275 </tr >
276276 <tr >
277277 <td >Enabled</td >
278- <td ><%= admin . isTableEnabled(table. getName()) . get( ) % > </td >
278+ <td ><%= master . getAssignmentManager() . isTableEnabled(table. getName()) % > </td >
279279 <td >Is the table enabled</td >
280280 </tr >
281281 <tr >
282282 <td >Compaction</td >
283283 <td >
284284<%
285- try {
286- CompactionState compactionState = admin. getCompactionState(table. getName()). get();
287- % >
288- <%= compactionState % >
289- <%
290- } catch (Exception e) {
291- // Nothing really to do here
292- for (StackTraceElement element : e. getStackTrace()) {
293- % ><%= StringEscapeUtils . escapeHtml4(element. toString()) % ><%
285+ if (master. getAssignmentManager(). isTableEnabled(table. getName())) {
286+ try {
287+ CompactionState compactionState = admin. getCompactionState(table. getName()). get();
288+ % ><%= compactionState % ><%
289+ } catch (Exception e) {
290+ // Nothing really to do here
291+ for (StackTraceElement element : e. getStackTrace()) {
292+ % ><%= StringEscapeUtils . escapeHtml4(element. toString()) % ><%
293+ }
294+ % > Unknown <%
294295 }
295- % > Unknown <%
296+ } else {
297+ % ><%= CompactionState . NONE % ><%
296298 }
297299% >
298300 </td >
You can’t perform that action at this time.
0 commit comments