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

   Thanks for the continued work on this. I went back over the earlier review 
points against the latest re-review.
   
   **Reported as closed by the latest re-review**
   
   - **Stale cleanup record from an older generation blocking repair or 
restore:** missing-key repair and terminal cleanup are now described as fenced 
by exact generation, with an exact owner recheck on master switch. That covers 
both the `containsKey` fence in `repairMissingJobStateForRestore` and the 
unvalidated `pendingJobCleanupIMap.get(jobId)` restore fence.
   - **Partial failure in `cleanupPendingJobStateMaps`:** a partial failure is 
now described as retaining the cleanup record and retrying every five seconds, 
bound to the generation. That addresses both the abort on the first failed 
remove and the orphaned entries after `runningJobInfoIMap.remove`.
   
   **Still to confirm**
   
   The re-review says the earlier required items are closed, but it does not 
spell these out, so please point me to where each is handled:
   
   1. **`jobMaster.init(...)` under the distributed lock:** the master-switch 
path is described as "fenced init". Does `init` still run while holding the 
`pendingJobCleanupIMap` lock? If it does, what bounds the hold time?
   2. **Lock ordering:** the missing-key path is described as releasing the 
state lock, taking the cleanup fence, then reacquiring the key and 
revalidating. Is the `pendingJobCleanupIMap.lock(jobId)` → 
`runningJobStateIMap.lock(key)` order documented in the code, and does 
`DistributedStateTransition` follow it everywhere?
   3. **Repair returns null with no owned cleanup record:** what happens to the 
`JobInfo` entry in that case now? Is it removed as before, or can it still be 
left behind?
   4. **Test coverage:** which test exercises an unowned stale cleanup record 
from an older generation being present during restore?
   
   A short pointer for each is enough; once these four are confirmed, I have no 
remaining asks on the earlier points.
   
   <!-- streview-comment:2571 -->


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