SEZ9 commented on PR #10551: URL: https://github.com/apache/seatunnel/pull/10551#issuecomment-7148733284
Thanks for the continued work on this. Here is where the earlier points stand after the latest follow-up on head `d0cc4372d3024f3bf4c45836f3545b7ad03939e4`. That follow-up was a source-level read only, with no local build, test or runtime run. **Looks addressed** - **Stale foreign-generation record blocking state repair (old `containsKey` fence):** `CoordinatorServiceJobCleanupTest.testMissingStateRepairIgnoresStaleCleanupRecordFromForeignGeneration` supplies a stale foreign record, repairs the current generation and asserts the stale record is cleared. This is a direct regression test, not a full cluster failover run. - **Null repair with no owned cleanup record:** the path rechecks `getOwnedPendingCleanup` and, if nothing owns that generation, does a conditional `runningJobInfoIMap.remove(jobId, jobInfo)`. The stale registration is removed and a newer JobInfo is preserved. - **Lock ordering:** cleanup -> state is documented in both `CoordinatorService` and `DistributedStateTransition`. The missing-key transition releases the state lock, takes the cleanup fence, then reacquires and rereads before publication. Existing-key transitions do not take the cleanup fence. **Documented trade-off** - **`jobMaster.init(...)` under `pendingJobCleanupIMap.lock(jobId)`:** this is still the case, with the exact JobInfo timestamp rechecked and a comment stating there is no overall wall-clock deadline. The fence is ownership-safe but not time-bounded, so same-job cleanup and submission wait until init returns or fails. I'm fine treating this as a documented limitation for this PR, provided the comment stays. A bounded redesign would have to stop a timed-out init from publishing state later, not just time out its caller. **Remaining asks** 1. **Restore fence ownership:** please confirm that the restore-path check on `pendingJobCleanupIMap.get(jobId)` is now generation/ownership-aware, the same as the repair path. Also, is there a test where a stale foreign-generation record is present during restore itself? The test above covers the missing-state repair path. 2. **Partial failure in `cleanupPendingJobStateMaps`:** the follow-up does not cover this. What happens now when a remove fails partway, especially after `runningJobInfoIMap.remove`? Is the cleanup retried or rescheduled, or do the residual state entries and the cleanup record stay until the next master switch? 3. **CI:** build 44980260056 is reported failing only in jobs 137094543731 and 137094543774, at the wrapper download step (HTTP429 / missing MavenWrapperMain). Please rerun those when you can. <!-- streview-comment:2596 --> -- 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]
