SEZ9 commented on issue #13324: URL: https://github.com/apache/seatunnel/issues/13324#issuecomment-7245795930
@SEPURI-SAI-KRISHNA thanks for the follow-up. Your three answers settle the points that were open on my side, and nothing further is needed from you on the design before a PR. - **Plain committers:** Agreed. Since `SinkFlowLifeCycle` commits a `SinkCommitter` from task memory (also inside `MultiTableSink`), such a pipeline must end FAILED in case 2 and keep R1. That stays true after #13469 unless the committer opts in to the proposed `restoreCommit`. - **1. Probe:** Thanks for the gist (`11adc64c2bca2d8af52281f5f814dbf9`). Please carry what it shows into the PR as a test, so it is checked against the PR head rather than only against dev `ee0fb0d72f`. - **2. Record after `notifyCompleted`:** Your answer works for me. Case 2 never resumes the old tasks: it clears the record, cancels them and restores from R1 as after a failure, so `job.retry.times = 0` ends FAILED and keeps R1. For FINISHED, you say the restored readers "should" have no splits left. That is still an assumption, so the no-rows-read assertion has to prove it, along with the new `COMPLETED_POINT` triggered via `readyToClose`. - **3. R2 rejected on the replacement master:** This covers the second-failure path as described: FAILED with key, status and cause, R1 still stored, and a restore from R1 being case 2 again with no rows read. What is left is a focused PR with these tests: 1. **Two-master replacement:** A real replacement after the final commit and before R2. The replacement must not write RUNNING over a valid R2, and must not replay source rows when it recovers from R1. 2. **R2 rejected on both masters:** FAILED names the key, target status and cause, and R1 remains available for the next recovery attempt. 3. **Write failures:** Separate cases for retryable and non-retryable failures. 4. **Plain-committer control:** A pipeline with a plain committer cannot be reported FINISHED through the R1 replay path. Please also keep normal successful terminal transitions unchanged, and keep the protocol at the checkpoint coordinator/state boundary. When the PR is up, link it here with the test results for its exact head. <!-- streview-comment:2685 --> -- 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]
