HBASE-23283 Provide clear and consistent logging about the period of enabled chores
Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
parent
b2f3ddeaa9
commit
d22e6f55d8
@ -151,9 +151,10 @@ public class ChoreService implements ChoreServicer {
|
||||
|
||||
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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user