SEPURI-SAI-KRISHNA commented on issue #13469: URL: https://github.com/apache/seatunnel/issues/13469#issuecomment-7269585644
@SEZ9 @DanielLeens thanks, no replay from K then. Here is what gets recorded: - Before deployment, a job started with `-r` writes `checkpoint_state_<job>_<pipeline>_restore_run` to the job state IMap: the baseline K and an empty list of checkpoint ids. If the write fails, the job does not start. - When this run completes checkpoint C, the master adds C to that list before it stores C, so every stored checkpoint of the run is named there. After C is stored, older ids are dropped, since a restore now picks C or a newer one. - `restoreCommit` runs only if the restored checkpoint's id is in the list. K is never in it, and a `-r` job with no record does not replay. - Pipeline restore and master switch read the same record, so both use this one rule. - The key has the `checkpoint_state_<job>_` prefix that CoordinatorService already cleans, and JobMaster adds it to the cleanup record next to `_ready_to_close`. - Flink, Spark, savepoint restore and old checkpoints are unchanged, and the checkpoint format is too. Tests: your four, plus a master switch after C is recorded but before it is stored. I will change this if you prefer another approach. -- 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]
