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

   @SEPURI-SAI-KRISHNA Yes, that sequencing is what I wanted: probe and 
contract here first, no PR until we agree. Both are now posted, so nothing is 
outstanding from that comment. What is left is your open choice and three small 
asks.
   
   **Probe.** A and B on dev `4cc5a10f4a` show the gap: a new coordinator sees 
the persisted FINISHED, then `restoreCoordinator` overwrites it with RUNNING 
and replaces the completed future with an open one. C shows `COMPLETED_POINT` 
being triggered again from the restored ready-to-close record. Since the IMap, 
plan and storage are mocked and `notifyCompleted` is stubbed, the two-node test 
still has to prove the contract.
   
   **Contract.** R1 stored before `notifyCompleted` and R2 after it, with the 
replacement master deciding only from those two records, is the fail-closed 
shape I was asking for. Completing FAILED with key, status and cause when R2 
cannot be written, while keeping R1, also covers the second failure.
   
   **Your choice for case 2.** I prefer running the pipeline once more from R1 
to re-commit. Ending FAILED knowingly accepts a possible partial final commit 
with no automatic way to finish it, whereas the re-run relies on the same 
idempotent re-commit you say every restore already depends on.
   
   There is one exception. As I read your note, plain committers do not 
re-commit in case 2 until #13469 is fixed. For those sinks, case 2 should end 
FAILED and keep R1 rather than run again and report FINISHED. Please confirm 
that reading.
   
   Remaining asks before the PR:
   
   1. Please share the full 190-line probe source as a gist here.
   2. Spell out how case 2 reaches "a new final checkpoint". Probe B shows the 
ready-to-close record was removed at completion and a regular checkpoint is 
triggered, not `COMPLETED_POINT`. What restores or replaces that record after a 
restore from R1?
   3. Add a test variant where the R2 write is also rejected on the replacement 
master. It should assert FAILED with key, status and cause, that R1 is still 
stored, and that the next restore is case 2 again with no source rows read.
   
   Once those are answered here, I think the contract is ready to go to a PR.
   
   <!-- streview-comment:2653 -->


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