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:
parent
f77c14d181
commit
b96aefd07f
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue