klion26 commented on code in PR #21053:
URL: https://github.com/apache/flink/pull/21053#discussion_r1004561770
##########
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CompletedCheckpointStore.java:
##########
@@ -39,6 +40,16 @@ public interface CompletedCheckpointStore {
* <p>Only a bounded number of checkpoints is kept. When exceeding the
maximum number of
* retained checkpoints, the oldest one will be discarded.
*
+ * <p>After <a
href="https://issues.apache.org/jira/browse/FLINK-24611">FLINK-24611</a>, {@link
+ * SharedStateRegistry#unregisterUnusedState} should be called here to
subsume unused state.
+ * <font color="#FF0000"><strong>Note</strong></font>, the {@link
CompletedCheckpoint} passed to
+ * {@link SharedStateRegistry#registerAllAfterRestored} or {@link
+ * SharedStateRegistryFactory#create} must be the same object as the input
parameter, otherwise
+ * the state may be deleted by mistake.
+ *
+ * <p>After <a
href="https://issues.apache.org/jira/browse/FLINK-24611">FLINK-25872</a>, {@link
Review Comment:
https://issues.apache.org/jira/browse/FLINK-24611 ->
https://issues.apache.org/jira/browse/FLINK-25872
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]