HBASE-23038 Provide consistent and clear logging about disabling chores

Differs from master/branch-2 version due to commons-logging

Co-authored-by: Sean Busbey <busbey@apache.org>
Signed-off-by: Viraj Jasani <virajjasani007@gmail.com>
Signed-off-by: Sean Busbey <busbey@apache.org>
(cherry picked from commit b45c0d0efa)
This commit is contained in:
Sanjeet Nishad 2019-09-26 09:38:37 +05:30 committed by Sean Busbey
parent f77c14d181
commit b96aefd07f
1 changed files with 4 additions and 0 deletions

View File

@ -151,6 +151,10 @@ public class ChoreService implements ChoreServicer {
}
try {
if (chore.getPeriod() <= 0) {
LOG.info("The period is " + chore.getPeriod() + " seconds, " + chore.getName() + " is disabled");
return false;
}
chore.setChoreServicer(this);
ScheduledFuture<?> future =
scheduler.scheduleAtFixedRate(chore, chore.getInitialDelay(), chore.getPeriod(),