CryoThrust commented on PR #12156:
URL: https://github.com/apache/seatunnel/pull/12156#issuecomment-7151068975

   I kept the second status read and made its missing-entry behavior explicit. 
If the entry disappears after the terminal guard, `cancelJob()` now fails 
before any state write, pipeline action or job-end completion, preserving the 
old ordinal dereference's behavior. Using the first snapshot would instead 
break the pending-to-running cleanup case, so that read remains fresh.
   
   `testCancelJobOnStatusClearedBetweenReadsFailsBeforeTransition` returns 
PENDING on the first read and null on the second. It failed against the 
previous head because no exception was thrown; it now passes and checks that 
the map is not written, the pipeline is untouched and the end future is 
incomplete. The existing pending-to-running test remains in place.
   
   JDK 11 validation passed: `JobStatusTest` (2), `StateTransitionCleanupTest` 
(22), the 45-module starter/E2E dependency packaging checks, and the real 
Zeta/Bash batch-cancel test (1 case, zero skips). The container test uses the 
newly packaged starter; only the deterministic unit test forces the 
missing-entry boundary. The PR description now records this contract and keeps 
#12342 separate. No wrapper/dependency changes or dev sync were added.
   


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