From c0e5c15887382c23b671220ad8e571e40adbf23d Mon Sep 17 00:00:00 2001 From: Guanghao Zhang Date: Thu, 12 Sep 2019 09:09:57 +0800 Subject: [PATCH] HBASE-22993 HBCK report UI showed -1 if hbck chore not running (#610) Signed-off-by: stack --- .../main/resources/hbase-webapps/master/hbck.jsp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/hbase-server/src/main/resources/hbase-webapps/master/hbck.jsp b/hbase-server/src/main/resources/hbase-webapps/master/hbck.jsp index 6ae5d68f68d..7b4e164ac55 100644 --- a/hbase-server/src/main/resources/hbase-webapps/master/hbck.jsp +++ b/hbase-server/src/main/resources/hbase-webapps/master/hbck.jsp @@ -86,9 +86,13 @@

HBCK Chore Report

<% if (hbckChore.isDisabled()) { %> - HBCK chore is currently disabled. Set hbase.master.hbck.chore.interval > 0 in the config & do a rolling-restart to enable it. + HBCK chore is currently disabled. Set hbase.master.hbck.chore.interval > 0 in the config & do a rolling-restart to enable it. + <% } else if (startTimestamp == 0 && endTimestamp == 0){ %> + No report created. Execute hbck_chore_run in hbase shell to generate a new sub-report. + <% } else if (startTimestamp > 0 && endTimestamp == 0){ %> + Checking started at <%= iso8601start %>. Please wait for checking to generate a new sub-report. <% } else { %> - Checking started at <%= iso8601start %> and generated report at <%= iso8601end %>. Execute hbck_chore_run in hbase shell to generate a new sub-report. + Checking started at <%= iso8601start %> and generated report at <%= iso8601end %>. Execute hbck_chore_run in hbase shell to generate a new sub-report. <% } %>

@@ -192,7 +196,12 @@
<% if (report != null && !report.isEmpty()) { %>