Myasuka commented on code in PR #21822:
URL: https://github.com/apache/flink/pull/21822#discussion_r1180408546


##########
flink-dstl/flink-dstl-dfs/src/main/java/org/apache/flink/changelog/fs/FsStateChangelogWriter.java:
##########
@@ -394,18 +394,14 @@ public void confirm(SequenceNumber from, SequenceNumber 
to, long checkpointId) {
                 .forEach(
                         localHandle -> {
                             changelogRegistry.stopTracking(localHandle);
-                            localChangelogRegistry.register(localHandle, 
checkpointId);
                         });
-    }
-
-    @Override
-    public void subsume(long checkpointId) {
         localChangelogRegistry.discardUpToCheckpoint(checkpointId);
     }
 
     @Override
     public void reset(SequenceNumber from, SequenceNumber to, long 
checkpointId) {
-        localChangelogRegistry.prune(checkpointId);
+        // delete all accumulated local dstl files when abort
+        localChangelogRegistry.discardUpToCheckpoint(checkpointId + 1);

Review Comment:
   I don't think the `#discardUpToCheckpoint` has the same meaning as the 
previous `#prune`. 
   `#prune` would only delete files with the specific checkpoint id, while 
`discardUpToCheckpoint` would delete files with checkpoint id smaller than the 
given one. And the `notifyCheckpointAbort` should tell the TM only abort files 
with that checkpoint id.



-- 
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]

Reply via email to