SEZ9 commented on PR #10551: URL: https://github.com/apache/seatunnel/pull/10551#issuecomment-7230260644
Follow-up on the earlier review points, based on a source read of head `d0cc4372d3024f3bf4c45836f3545b7ad03939e4` (no build, test, or runtime execution behind it). **Partial cleanup without retry (PR10551-F4, PR10551-F6): withdrawn as stated.** On this head, `cleanupPendingJobStateMaps` catches failures per key, continues through the remaining keys, and returns false if any removal or unlock failed. `processPendingJobCleanup` then keeps the cleanup record and schedules another attempt, even when the `runningJobInfoIMap` entry is already gone. `retryPendingJobStateCleanup` applies the five-second backoff. So the "first remove failure aborts with no retry or reschedule" description does not match this head, and I'm sorry it was carried forward. One optional ask: if a test already exercises a partial failure followed by a successful retry, please point me to it. **`jobMaster.init(...)` under the `pendingJobCleanupIMap` lock (PR10551-F5): still open.** The code comment explains why init stays fenced: cleanup or a new generation must not invalidate ownership while init constructs state. It also acknowledges there is no overall deadline. I follow the rationale, but I'm not ready to accept an indefinite hold on the same jobId as-is. Please do one of the following: - Bound the init in an ownership-safe way. A caller-only timeout that lets init keep publishing afterwards would be unsafe, so the bound has to cancel or preserve ownership. - If you prefer to keep it unbounded, describe what is blocked for that jobId while init hangs and how an operator recovers, so we can decide on the trade-off explicitly. **Remaining points: status needed.** This follow-up did not cover the items below. Could you say briefly how the current head handles each, or whether it is still pending? - **PR10551-F1 / PR10551-F2:** the jobId-only `pendingJobCleanupIMap` fences in `repairMissingJobStateForRestore` and the restore path, where a stale cleanup record from an older generation can block repair or restore of the active generation. - **PR10551-F3:** documenting the `pendingJobCleanupIMap.lock(jobId)` → `runningJobStateIMap.lock(key)` ordering, and confirming it also holds in `DistributedStateTransition`. - **PR10551-F7:** the zombie `JobInfo` left behind when state repair returns null and no owned cleanup record exists. - **PR10551-F8:** a test for the unowned stale-cleanup-record-during-restore scenario. Thanks for the continued work on this. <!-- streview-comment:2678 --> -- 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]
