From 8bc6a5954aa715b6ce0f24cd441fc11816919926 Mon Sep 17 00:00:00 2001 From: SiCheng-Zheng <643463623@qq.com> Date: Tue, 20 Sep 2022 17:10:06 +0800 Subject: [PATCH] HBASE-27310 Add disabled table is displayed red on master web tables list (#4755) Co-authored-by: zhengsicheng Signed-off-by: Duo Zhang --- .../apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 c55013dd67b..1bfa967d70f 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 @@ -651,11 +651,11 @@ AssignmentManager assignmentManager = master.getAssignmentManager(); <% tableName.getNamespaceAsString() %> - ><% URLEncoder.encode(tableName.getQualifierAsString()) %> + <%if (tableState.isDisabledOrDisabling()) %> ><% URLEncoder.encode(tableName.getQualifierAsString()) %> <%else>><% URLEncoder.encode(tableName.getQualifierAsString()) %> <%if (frags != null) %> <% frags.get(tableName.getNameAsString()) != null ? frags.get(tableName.getNameAsString()).intValue() + "%" : "n/a" %> - <% tableState.getState() %> + <%if (tableState.isDisabledOrDisabling()) %> <% tableState.getState().name() %> <%else><% tableState.getState() %> <% openRegionsCount %> <%if (openingRegionsCount > 0) %> <% openingRegionsCount %> <%else><% openingRegionsCount %> <%if (closedRegionsCount > 0) %> <% closedRegionsCount %> <%else><% closedRegionsCount %>