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()) { %> diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/assignment/TestHbckChore.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/assignment/TestHbckChore.java index 32a23b8ee68..7ade9c703c9 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/assignment/TestHbckChore.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/assignment/TestHbckChore.java @@ -188,7 +188,7 @@ public class TestHbckChore extends TestAssignmentManagerBase { .setEndKey(Bytes.toBytes(1)).setSplit(true).setOffline(true).setRegionId(0).build(); String regionName = hri.getEncodedName(); rsDispatcher.setMockRsExecutor(new GoodRsExecutor()); - Future future = submitProcedure(createAssignProcedure(hri)); + Future future = submitProcedure(am.createAssignProcedure(hri)); waitOnFuture(future); List serverNames = master.getServerManager().getOnlineServersList(); @@ -236,4 +236,4 @@ public class TestHbckChore extends TestAssignmentManagerBase { ran = lastRunTime != hbckChoreWithChangedConf.getCheckingEndTimestamp(); assertFalse(ran); } -} \ No newline at end of file +}