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 {
|
} else {
|
||||||
cleanupFailureReason = "Configuration/Interval condition not satisfied to execute lease cleanup this cycle";
|
cleanupFailureReason = "Configuration/Interval condition not satisfied to execute lease cleanup this cycle";
|
||||||
}
|
}
|
||||||
if (!cleanedUpCompletedLease && !alreadyCheckedForGarbageCollection && timeToCheckForGarbageShard) {
|
if (cleanupLeasesUponShardCompletion && !cleanedUpCompletedLease && !alreadyCheckedForGarbageCollection && timeToCheckForGarbageShard) {
|
||||||
// throws ResourceNotFoundException
|
// throws ResourceNotFoundException
|
||||||
wereChildShardsPresent = !CollectionUtils
|
wereChildShardsPresent = !CollectionUtils
|
||||||
.isNullOrEmpty(getChildShardsFromService(shardInfo));
|
.isNullOrEmpty(getChildShardsFromService(shardInfo));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue