DanielLeens commented on issue #13324: URL: https://github.com/apache/seatunnel/issues/13324#issuecomment-7191754948
Thanks for moving the proposal from the local symptom to the recovery path. I rechecked latest `dev` at `c0c6d04ca517f7fe039fb1994604a3643a3e59ec`: the initial coordinator construction preserves an existing end state, but `restoreCoordinator(...)` creates a new future and writes `RUNNING`. That recovery-side overwrite is therefore a real part of the problem, not an optional refinement. The proposal is not yet ready for an implementation PR. In particular, a failed `FINISHED` or `SUSPEND` persistence occurs after the external commit has succeeded. Completing only the current coordinator future as `FAILED` and disabling restore locally does not leave a durable fact for a replacement master. `neverNeedRestore` is not persisted, as you noted, so a master loss in that interval could still see the older state and replay work that already committed. Please extend the proposal with one explicit, fail-closed recovery protocol for that interval: what durable state (if any) distinguishes "commit completed, terminal persistence failed"; what a replacement master does when it cannot write that state either; and how this differs for `FINISHED`, `SUSPEND`, `FAILED`, and `CANCELED`. It must not infer a successful terminal transition from an in-memory future. The test gate also needs a real master-replacement scenario, not only a mocked-IMap coordinator probe: inject the terminal-write failure after the final commit, replace the master before local cleanup completes, and prove that the replacement neither replays the final work nor reclassifies the completed pipeline as running. Retain the existing bounded retry/error evidence for retryable and non-retryable failures. Please post that revised contract and test outline here before opening a focused Zeta PR. -- 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]
