SEPURI-SAI-KRISHNA commented on issue #13469: URL: https://github.com/apache/seatunnel/issues/13469#issuecomment-7250975951
@SEZ9 @DanielLeens one edge before I build, read on dev `0bef81d003`. `CheckpointManager` already tells the restores apart: `masterFailoverRestore` for a master switch, `isRestoreJob` alone for `-r`. So replay can run only on automatic recovery, as agreed. The edge: after `-r` from checkpoint K, the run's next checkpoint id is K+1. If the pipeline restores, or the master switches, before K+1 completes, automatic recovery restores K again, the checkpoint the user chose. Replaying K's info there brings back the expired transaction case that `-r` was kept out of. My plan: replay only from a checkpoint this run completed, so recovery from K behaves like `-r` (no replay). A pipeline restore can check that in memory. After a master switch the new master cannot tell K apart, because `-r` keeps the job id, so the `-r` start would record K in the job state IMap next to the checkpoint status, removed with the other job keys. Is that acceptable, or would you rather replay from K too? -- 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]
