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

   Classification: A / Zeta terminal-state durability across failover.
   
   Thanks for separating the local-coordinator observation from the failover 
case. I rechecked current `dev` at `86bef7694d68fb8c167b79626a30a4236d18208f`: 
`CheckpointCoordinator.updateStatus()` still catches a failed terminal IMap 
write and returns, while `isNoErrorCompleted()` still uses the IMap terminal 
value for its completion decision.
   
   Using the original coordinator's completed future can make that one 
in-memory coordinator see its own terminal result after a failed write, but it 
does not make the terminal state durable and it does not give a replacement 
coordinator the lost `FINISHED` or `SUSPEND` state after master failover. That 
is the failure reported here. Changing only the local read, or changing the log 
level, would therefore narrow the symptom while leaving the failover 
correctness gap unresolved.
   
   Please do not start that partial fix. The draft #12043 diagnostics work is 
not an implementation lane for this terminal-state persistence problem, so this 
should not be rebased onto or mixed with it.
   
   Before a focused PR, please provide a small proposal and tests that define 
the fail-closed transition when terminal persistence cannot succeed:
   
   1. the ordering and authoritative durable record for `FINISHED`, `SUSPEND`, 
`FAILED`, and `CANCELED`;
   2. what a retry exhaustion means for the coordinator future and pipeline 
lifecycle, rather than swallowing the failure and continuing with stale state;
   3. a reconstruction/failover test that injects the terminal IMap-write 
failure, creates the recovery-side coordinator state, and proves a completed 
pipeline does not repeat final work while a failed pipeline is not incorrectly 
restored; and
   4. bounded retry/backoff and an observable error path that does not block 
coordinator progress indefinitely.
   
   Keep the change at the checkpoint coordinator/state boundary and preserve 
normal successful terminal transitions. Once that persistence and recovery 
contract is reviewable, a narrow Zeta PR can be evaluated.
   


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