SEZ9 commented on PR #12165: URL: https://github.com/apache/seatunnel/pull/12165#issuecomment-7204300256
Thanks for the explanation of the lease-close port. Here is where the earlier review points stand after the latest review of the current diff. **Blocking** - **Async trigger handoff:** The traced runtime path shows the trigger continuation going through `thenAcceptAsync` onto the coordinator executor, with the watchdog armed through the lease from there. The latest review treats this handoff itself as merge-blocking, so a documentation-only change would not resolve it; the handoff needs to be addressed in code. Once that is settled, please make sure the `SharedCheckpointScheduler` Javadoc and the PR description, which say checkpoint work is never dispatched onto that executor, match the final behaviour. **Earlier points without a stated status** The latest review does not give a per-item status for the following, so could you confirm whether each is addressed in the current diff? - **`scheduler` field:** It was reassigned under `lock` but read without it and not volatile, and `schedule()` on a closed lease returned a cancelled future with no log. - **PR description on failover:** It said master failover "reuses the lease", while terminal cleanup closes the lease and RESET obtains a fresh one. - **`cancelAll()`:** It was public and documented as leaving the lease reusable, but production only reaches it through `close()`, and its trailing `outstanding.clear()` is unsafe for a direct caller. - **`getTimerPoolSize()`:** It was public although documented as test-only, while `getDispatcherPoolSize()` is package-private. - **Failover IT:** It asserted only the lease's `closed` flag. Since cancellation is best effort after dispatch, that flag does not prove nothing stays armed for the cancelled pipeline. If any of these are already handled, a short note on which and how would help us take another look. <!-- streview-comment:2636 --> -- 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]
