DanielLeens commented on code in PR #13717:
URL: https://github.com/apache/seatunnel/pull/13717#discussion_r4731340849


##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/checkpoint/CheckpointManager.java:
##########
@@ -225,14 +225,59 @@ private PipelineState getLatestCheckpointStateByType(
         }
         List<PipelineState> pipelineStates =
                 
checkpointStorage.getCheckpointsByJobIdAndPipelineId(sourceJobId, pipelineId);

Review Comment:
   Thanks, @goutamadwant — yes, that outer-envelope case is outside the new 
candidate-loop catch. `LocalFileStorage.getAllCheckpoints` decodes each 
`PipelineState` at 116-146 before `CheckpointService` receives the list, and 
the manager's per-pipeline storage read likewise precedes its payload loop. An 
unchecked envelope decode can therefore prevent either selector from reaching 
healthy ID 2. My full review explicitly retained that boundary; the new loop is 
payload-decode fallback, not universal damaged-file recovery.
   
   If truncated outer files are part of the accepted scope, the corresponding 
fix belongs at the storage per-file read/decode boundary, with 
file/job/pipeline identity retained and tests for mixed healthy/truncated files 
and all-invalid candidates. It should not broadly hide listing, permission or 
unrelated storage failures. Otherwise the public docs/comment must limit the 
promise to readable envelopes, as already requested in the review. I have not 
executed the truncation experiment locally.



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