Improving LeaseCleanupManager's cleanupFailureReason
This commit is contained in:
parent
b2a747f3ea
commit
03e162b770
1 changed files with 2 additions and 0 deletions
|
|
@ -218,6 +218,8 @@ public class LeaseCleanupManager {
|
|||
LOG.info("Lease not present in lease table while cleaning the shard " + shardInfo.getShardId());
|
||||
cleanedUpCompletedLease = true;
|
||||
}
|
||||
} else {
|
||||
cleanupFailureReason = "Configuration/Interval condition not satisfied to execute lease cleanup this cycle";
|
||||
}
|
||||
if (!cleanedUpCompletedLease && !alreadyCheckedForGarbageCollection && timeToCheckForGarbageShard) {
|
||||
// throws ResourceNotFoundException
|
||||
|
|
|
|||
Loading…
Reference in a new issue