DanielLeens commented on PR #10551:
URL: https://github.com/apache/seatunnel/pull/10551#issuecomment-7130327985

   Thanks, @SEZ9 — all four have concrete pointers, with one deliberate timing 
limitation:
   
   1. **Init fence:** yes, restore initialization still runs under 
pendingJobCleanupIMap.lock(jobId), CoordinatorService.java:1332-1353, with the 
exact JobInfo timestamp rechecked. The comment at 1327-1331 explicitly states 
there is **no overall wall-clock deadline**: same-job cleanup/submission waits 
until init returns or fails. “Fenced” means ownership-safe; it does not mean 
time-bounded. Submission uses the same fence at 1898-1914. A future bounded 
redesign must prevent a timed-out initialization from later publishing state, 
not merely time out its caller.
   2. **Lock order:** CoordinatorService's adjacent comment and 
DistributedStateTransition.java:95-101 document cleanup -> state. The 
transition first releases a missing key's state lock at 124-125, takes the 
cleanup fence, reacquires the key at 126-130 and rereads before publication. 
Existing-key transitions do not acquire that cleanup fence. That is the 
inspected ordering, not a claim about arbitrary future call sites.
   3. **Null repair without owned cleanup:** CoordinatorService.java:1283-1294 
rechecks getOwnedPendingCleanup. If none owns that generation, it conditionally 
removes runningJobInfoIMap.remove(jobId, jobInfo), preserving a newer JobInfo 
instead of leaving the stale registration behind.
   4. **Foreign-generation cleanup test:** 
CoordinatorServiceJobCleanupTest.testMissingStateRepairIgnoresStaleCleanupRecordFromForeignGeneration
 at 1405 supplies the stale foreign record, repairs the current generation and 
asserts the stale record is cleared at 1437-1443. This is the direct regression 
for the old containsKey fence; it is not a full cluster failover execution 
claim.
   
   My source-level clearance remains unchanged with that documented 
init-latency trade-off. Build 44980260056 still fails only in Doris/JDK17 job 
137094543731 and Kudu/JDK11 job 137094543774 at wrapper download 
HTTP429/missing MavenWrapperMain. Latest dev's wrapper is unchanged from this 
base, so no verified sync cure was found. Rerun those download lanes when 
available; effective maintainer approval remains separate.
   
   This is a discussion follow-up on unchanged head 
`d0cc4372d3024f3bf4c45836f3545b7ad03939e4`, not a new full source review. I 
inspected the named local source paths; no local build, test or SeaTunnel 
runtime was executed. Daniel has READ permission; effective maintainer approval 
and historical review dismissal remain separate repository actions.


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