SEPURI-SAI-KRISHNA commented on issue #13324:
URL: https://github.com/apache/seatunnel/issues/13324#issuecomment-7250888628
@SEZ9 @DanielLeens before I open the PR, one fact the contract missed. On
dev `0bef81d003`, `updateStatus` skips the write when
`checkpoint_state_<job>_<pipeline>` is absent, and nothing else creates that
key. So for a freshly submitted job R2 is never written.
I ran the real `completePendingCheckpoint` on an empty IMap. FINISHED is
skipped ("has already been cleaned"), the key stays absent,
`isNoErrorCompleted()` is false, and a new coordinator gets an open future.
With the key seeded as RUNNING, the same path writes FINISHED.
#12559 gates the write on the owning job state instead, so the first
transition creates the key. Without it, a replacement master never sees R2 and
the contract would put every pipeline that finished before a master switch in
case 2.
So I plan to base the PR on #12559 and open it once that merges, with the
four tests unchanged. #12559 still skips when the job lock times out; for
FINISHED and SUSPEND the PR treats that like a failed write (FAILED, R1 kept).
Does that work for you?
--
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]