Bug fix for cleanupLease logic -- not check child shards when cleanup is disabled
This commit is contained in:
parent
8dceb3f80f
commit
b1cc74ee4a
1 changed files with 1 additions and 1 deletions
|
|
@ -238,7 +238,7 @@ public class LeaseCleanupManager {
|
|||
} else {
|
||||
cleanupFailureReason = "Configuration/Interval condition not satisfied to execute lease cleanup this cycle";
|
||||
}
|
||||
if (!cleanedUpCompletedLease && !alreadyCheckedForGarbageCollection && timeToCheckForGarbageShard) {
|
||||
if (cleanupLeasesUponShardCompletion && !cleanedUpCompletedLease && !alreadyCheckedForGarbageCollection && timeToCheckForGarbageShard) {
|
||||
// throws ResourceNotFoundException
|
||||
wereChildShardsPresent = !CollectionUtils
|
||||
.isNullOrEmpty(getChildShardsFromService(shardInfo));
|
||||
|
|
|
|||
Loading…
Reference in a new issue