goutamadwant commented on code in PR #13712:
URL: https://github.com/apache/seatunnel/pull/13712#discussion_r4731125685


##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/checkpoint/CheckpointCoordinator.java:
##########
@@ -1448,6 +1447,11 @@ public synchronized void 
completePendingCheckpoint(CompletedCheckpoint completed
                                 .states(states)
                                 .build());
             }
+            // Only track a checkpoint after its state is durably stored (or 
after the type was
+            // deliberately not stored): the queue drives retention deletions, 
so an id recorded
+            // before a failed write would later be handed to 
deleteCheckpoint() although it never
+            // existed, and the queue would no longer describe the files on 
disk.
+            completedCheckpointIds.addLast(String.valueOf(checkpointId));

Review Comment:
   Optional: `LocalFileStorage.storeCheckPoint` touches the file before 
writing, so a failed write (e.g. disk full) leaves an empty `.ser`. On dev a 
later retention block removed it; with this order the id is never queued and 
the file stays. Maybe delete that id in the failure path?



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