Improving LeaseCleanupManager's cleanupFailureReason

This commit is contained in:
Ashwin Giridharan 2021-01-25 23:41:23 -08:00
parent b2a747f3ea
commit 03e162b770

View file

@ -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