SEZ9 commented on issue #13479: URL: https://github.com/apache/seatunnel/issues/13479#issuecomment-7204462178
Thanks for the detailed report and analysis. The version (2.3.x, dev commit af812b0), job config and reproduction steps are all clear. A possible fix direction, based on your description and not verified against the source here: have `CoordinatorService.stopJob(jobId)` store the terminal state for pending jobs, similar to the defensive branch you describe in `CoordinatorService.cancelJob(jobId)`, before the JobMaster is unregistered from `runningJobMasterMap`. Status queries should then return `CANCELED` and `waitForJobComplete` should resolve. A PR should include a test that submits a job with insufficient slots under `schedule_strategy: WAIT`, force-stops it, and asserts that the status is `CANCELED` and `waitForJobComplete` returns. As you noted, this is open for community contributors to claim. If you have the master logs around the stop request, sharing them would help whoever picks this up confirm that `JobMaster.cleanJob()` is never reached. <!-- streview-comment:2649 --> -- 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]
