CryoThrust commented on issue #13488: URL: https://github.com/apache/seatunnel/issues/13488#issuecomment-7210270840
There are two related boundaries here, and I would coordinate with #12510 before implementing this issue. On current dev `39c74ce48`, `stateProcess()` holds the SubPlan monitor while `prepareRestorePipeline()` sleeps inside `restoreLock`. `cancelPipeline()` needs the same SubPlan monitor. That supports the reported cancellation-latency problem independently of whether a retry is eventually allowed to allocate resources. I have checked the source path, not rerun the embedded reproduction yet. #12510 already adds `isNeedRestore()` checks before and after `preApplyResources`, including release of reservations completed after cancellation. I would not duplicate that resource-allocation fix. Its current patch does not change the in-monitor retry sleep, so promptly waking a pending backoff remains a separate piece. I would be interested in taking that backoff-only piece, coordinated with @hutiefang76's existing work. The acceptance boundary would be: cancellation during a nonzero retry interval returns promptly, no delayed continuation resets or deploys a cancelled pipeline, the normal retry delay/budget is unchanged, and existing failure/resource cleanup behavior stays intact. Tests should cover both cancellation before the wait is installed and cancellation while waiting, plus normal retry and force-stop controls; the embedded case should also keep the slot counter unchanged. Would a separate, coordinated cancellation-wakeup change be useful here? I would keep the allocation checks owned by #12510 rather than open a competing implementation. No source change or new runtime result is claimed by this comment. -- 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]
