SEZ9 commented on issue #13469:
URL: https://github.com/apache/seatunnel/issues/13469#issuecomment-7292010245

   @SEPURI-SAI-KRISHNA yes, this approach is acceptable, and you don't need to 
switch to another one. Nothing is left to decide on the design; what remains is 
one clarification and the tests.
   
   It matches the boundary asked for earlier:
   - **Durable record:** it is written before deployment, and the job does not 
start if the write fails.
   - **Positive proof:** a list of checkpoint ids completed by this run is a 
current-run completion proof, not an id comparison. K can never be in it.
   - **One rule:** pipeline restore and master switch read the same record, so 
the two paths cannot drift apart.
   - **Ordering:** recording C before storing it is the safe direction. 
Dropping older ids only after C is stored keeps the previous checkpoint 
eligible in between.
   
   Please spell out one thing in the PR: the rule for a job started without 
`-r`. As you describe it, only a `-r` start writes the record, and "a `-r` job 
with no record does not replay". A normal job has no record either, so say 
explicitly how the code tells the two apart and that normal automatic recovery 
still replays. Test (3) should pin this.
   
   Remaining asks on the tests:
   - **Master switch after C is recorded but before it is stored:** please 
cover both variants. Where the restored checkpoint is K, assert no replay. 
Where it is an earlier checkpoint of this run, assert replay for that 
checkpoint only, and that the unstored C entry has no effect.
   - **Cleanup:** assert that the `_restore_run` key is absent after every 
terminal path, not only after normal completion.
   - **Unchanged paths:** keep the Flink, Spark, savepoint restore and 
old-checkpoint assertions you listed.
   
   With those in place, plus the Kafka outcome proof requested earlier, please 
go ahead and build it.
   
   <!-- streview-comment:2737 -->


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