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

   Thanks @SEPURI-SAI-KRISHNA, measuring the failover side first was the right 
move, and it changes the scope. I see the same on `dev` at 
`c0c6d04ca517f7fe039fb1994604a3643a3e59ec`: the initial coordinator 
construction preserves an existing end state, but `restoreCoordinator(...)` 
creates a new future and writes `RUNNING`. So the restore-side handling in your 
point 3 is a required part of the fix, not an optional refinement.
   
   The direction works, but the proposal is not ready for an implementation PR 
yet. The blocker is the case you listed under "Not covered".
   
   When the `FINISHED` or `SUSPEND` write fails, the external commit has 
already succeeded. Completing the current coordinator future as `FAILED` and 
calling `handleCheckpointError(pipelineId, true)` only disables restore on that 
master. Since `neverNeedRestore` is not persisted, a master lost in that 
interval leaves the replacement with the pre-completion state, and it can 
replay work that already committed.
   
   Please extend the proposal with one explicit, fail-closed recovery protocol 
for that interval:
   
   1. **Durable state:** what, if anything, distinguishes "commit completed, 
terminal persistence failed" for a replacement master.
   2. **Second failure:** what the replacement master does when it cannot write 
that state either.
   3. **Per status:** how the protocol differs for `FINISHED`, `SUSPEND`, 
`FAILED` and `CANCELED`.
   4. **No in-memory inference:** a successful terminal transition must never 
be inferred from an in-memory future.
   
   The test gate also needs a real master-replacement scenario in addition to 
the mocked-IMap coordinator tests:
   
   - Inject the terminal-write failure after the final commit.
   - Replace the master before local cleanup completes.
   - Prove the replacement neither replays the final work nor reclassifies the 
completed pipeline as running.
   
   Please keep the bounded retry and error evidence from your point 4, for both 
retryable and non-retryable failures.
   
   Yes, please post the probe. Then post the revised contract and test outline 
here before opening the focused Zeta PR.
   
   <!-- streview-comment:2637 -->


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