SEZ9 commented on issue #13469: URL: https://github.com/apache/seatunnel/issues/13469#issuecomment-7262621039
@SEPURI-SAI-KRISHNA Yes, your plan is acceptable: please do not replay from K. The edge is real. After `-r K`, a master that comes back before K+1 completes cannot tell from the restored state alone whether K is the user-selected baseline or a checkpoint this run produced. Replaying K there would bring back the expired-transaction case that `-r` was deliberately kept out of. So `restoreCommit` should be eligible only for a checkpoint completed by the same run after its explicit baseline, and recovery from K should behave like `-r` (no replay). Recording the baseline in the job state IMap next to the checkpoint status is fine, with these conditions: - **Written early:** the record is written before deployment, so it is already visible when a master switch happens. - **Scoped to the run:** it is scoped to the job run and removed with the other job keys on every terminal path. - **Positive proof:** eligibility rests on proof that this run completed the checkpoint, not on an ID comparison against K alone. - **No side effects:** the marker does not change Flink, Spark, explicit savepoint restore, or the old-checkpoint path. One thing I still need from you: your description covers the in-memory check for a pipeline restore, but not how the new master proves a checkpoint was completed by this run. If the IMap holds only K, that check becomes "id > K", which is the ID comparison to avoid. Please spell out what gets recorded for that case. Tests to include: 1. `-r K`, then a pipeline restore and a master switch before K+1 completes, with no replay of K. 2. The same run after it completes K+1, with replay only for K+1. 3. A normal automatic restore without `-r`. 4. Cleanup of the marker on every terminal path. With that boundary, plus the Kafka outcome proof and automatic-recovery tests requested earlier, the automatic Zeta-only slice can proceed. <!-- streview-comment:2708 --> -- 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]
