HBASE-27310 Add disabled table is displayed red on master web tables list (#4755)

Co-authored-by: zhengsicheng <zhengsicheng@jd.com>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
SiCheng-Zheng 2022-09-20 17:10:06 +08:00 committed by GitHub
parent 3f4734edae
commit 8bc6a5954a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -651,11 +651,11 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
</%java>
<tr>
<td><% tableName.getNamespaceAsString() %></td>
<td><a href=table.jsp?name=<% encodedTableName %>><% URLEncoder.encode(tableName.getQualifierAsString()) %></a> </td>
<%if (tableState.isDisabledOrDisabling()) %> <td><a style="color:red;" href=table.jsp?name=<% encodedTableName %>><% URLEncoder.encode(tableName.getQualifierAsString()) %></a></td> <%else><td><a href=table.jsp?name=<% encodedTableName %>><% URLEncoder.encode(tableName.getQualifierAsString()) %></a></td> </%if>
<%if (frags != null) %>
<td align="center"><% frags.get(tableName.getNameAsString()) != null ? frags.get(tableName.getNameAsString()).intValue() + "%" : "n/a" %></td>
</%if>
<td><% tableState.getState() %></td>
<%if (tableState.isDisabledOrDisabling()) %> <td style="color:red;"><% tableState.getState().name() %></td> <%else><td><% tableState.getState() %></td> </%if>
<td><% openRegionsCount %></td>
<%if (openingRegionsCount > 0) %> <td><a href="/table.jsp?name=hbase%3Ameta&scan_table=<% encodedTableName %>&scan_region_state=OPENING"><% openingRegionsCount %></td> <%else><td><% openingRegionsCount %></td> </%if>
<%if (closedRegionsCount > 0) %> <td><a href="/table.jsp?name=hbase%3Ameta&scan_table=<% encodedTableName %>&scan_region_state=CLOSED"><% closedRegionsCount %></td> <%else><td><% closedRegionsCount %></td> </%if>