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

   Thanks for the update. I'm following up on the earlier restore/cleanup 
points. The latest review round describes the intended flow in prose, but that 
is not enough for me to confirm any of these as resolved. All of them stay open 
until you can point to the change that addresses each one.
   
   1. **Stale cleanup record blocking state repair:** does 
`repairMissingJobStateForRestore` still use a jobId-only 
`pendingJobCleanupIMap.containsKey` fence? The flow summary mentions "validate 
exact JobInfo generation", but that does not show that the cleanup-record 
lookup itself checks ownership or generation.
   2. **Stale cleanup record aborting restore:** the same question applies to 
the `pendingJobCleanupIMap.get(jobId)` check in the restore path. Is the record 
now validated against the active generation before restore is skipped?
   3. **Lock ordering:** please confirm that the restore paths and 
`DistributedStateTransition` take `pendingJobCleanupIMap.lock(jobId)` and 
`runningJobStateIMap.lock(key)` in the same order, and document that ordering 
contract on the core methods.
   4. **Cleanup aborting on the first remove failure:** the summary describes 
"retain record -> five-second generation-bound retry". Please point to where 
`cleanupPendingJobStateMaps` now does this.
   5. **`jobMaster.init(...)` under the cleanup lock:** does init still run 
while the distributed `pendingJobCleanupIMap` lock is held in the master-switch 
restore path? If so, what bounds the hold time?
   6. **Partial failure after `runningJobInfoIMap.remove`:** please show how 
the remaining state entries are cleaned up, rather than only logging a warning.
   7. **Zombie JobInfo:** when state repair returns null and no owned cleanup 
record exists, what happens to the JobInfo entry now?
   8. **Test coverage:** is there a test where an unowned stale cleanup record 
is present during restore, asserting that the active generation is still 
repaired and restored?
   
   Once each item has a pointer to the relevant change, I'm happy to take 
another look.
   
   <!-- streview-comment:2507 -->


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