Added comments on the garbage cleanup logic - 2
This commit is contained in:
parent
7b0dc0d3e5
commit
4d65f56038
1 changed files with 1 additions and 0 deletions
|
|
@ -146,6 +146,7 @@ public class ShutdownTask implements ConsumerTask {
|
|||
// in the case of RNF Exception.
|
||||
attemptShardEndCheckpointing(scope, startTime);
|
||||
} finally {
|
||||
// Attempt to garbage collect if this shard is no longer associated with the stream.
|
||||
// If we don't want to cleanup the garbage shard without successful shard end
|
||||
// checkpointing, remove the try finally construct and only execute the methods.
|
||||
attemptGarbageCollectionOfLeaseAndEnqueueOnFailure(leasePendingDeletion, currentShardLease);
|
||||
|
|
|
|||
Loading…
Reference in a new issue