rkhachatryan commented on code in PR #19448: URL: https://github.com/apache/flink/pull/19448#discussion_r881373022
########## flink-runtime/src/main/java/org/apache/flink/runtime/state/SharedStateRegistryImpl.java: ########## @@ -156,16 +175,47 @@ public void unregisterUnusedState(long lowestCheckpointID) { subsumed.add(entry.stateHandle); } it.remove(); + } else { + markCheckpointInUseAction.accept(entry.createdByCheckpointID); } } } - LOG.trace("Discard {} state asynchronously", subsumed.size()); for (StreamStateHandle handle : subsumed) { scheduleAsyncDelete(handle); } } + @Override + public void unregisterUnusedState(long lowestCheckpointID) { + unregisterState(lowestCheckpointID, (x) -> {}); Review Comment: > all checkpoints are discarded by CompletedCheckpointStore when shutdown I doubt **all**, because some are transfered from `CompletedCheckpointStore` to `SharedStateRegistry`. So `CompletedCheckpointStore` simply doesn't referenece them anymore, does it? (I think this is also true if we introduce `SubsumedCheckpointStore` dicsussed offline) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org