Skip to content

Commit

Permalink
HBASE-23283 Provide clear and consistent logging about the period of …
Browse files Browse the repository at this point in the history
…enabled chores

Signed-off-by: Sean Busbey <busbey@apache.org>
  • Loading branch information
liuml07 authored and busbey committed Nov 15, 2019
1 parent 4cc899d commit 73f3e1d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,10 @@ public synchronized boolean scheduleChore(ScheduledChore chore) {

try {
if (chore.getPeriod() <= 0) {
LOG.info("The period is {} seconds, {} is disabled", chore.getPeriod(), chore.getName());
LOG.info("Chore {} is disabled because its period is not positive.", chore);
return false;
}
LOG.info("Chore {} is enabled.", chore);
chore.setChoreServicer(this);
ScheduledFuture<?> future =
scheduler.scheduleAtFixedRate(chore, chore.getInitialDelay(), chore.getPeriod(),
Expand Down

0 comments on commit 73f3e1d

Please sign in to comment.