You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by "KaiSong-UK (via GitHub)" <gi...@apache.org> on 2026/05/24 03:18:43 UTC
[PR] [Fix-16789] Fix flink job stop error when process has already exited [dolphinscheduler]
KaiSong-UK opened a new pull request, #18289:
URL: https://github.com/apache/dolphinscheduler/pull/18289
## What is the purpose of the change
fix #16789
When stopping a Flink task through the DolphinScheduler page, if the Flink process has already exited automatically before the kill signal is sent, the pstree command in ProcessUtils.getPidList() throws an exception because the process no longer exists. This causes the kill() method to return false and log an error message, even though the process termination is actually the expected behavior.
## Brief changelog
- Modified ProcessUtils.getPidList() to return an empty list when pstree fails (process has already exited), instead of throwing an exception
- Changed the log level from error to warn with a more descriptive message indicating the process may have already exited
## Verifying this change
When a Flink task process exits on its own before the stop command is issued, the kill operation will now succeed silently instead of reporting an error.
## Does this PR introduce breaking changes?
No.
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix-16789] Fix flink job stop error when process has already exited [dolphinscheduler]
Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS closed pull request #18289: [Fix-16789] Fix flink job stop error when process has already exited
URL: https://github.com/apache/dolphinscheduler/pull/18289
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Fix-16789] Fix flink job stop error when process has already exited [dolphinscheduler]
Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS commented on PR #18289:
URL: https://github.com/apache/dolphinscheduler/pull/18289#issuecomment-4527306692
Please abide by the PR specification before submitting PR and submit it after the local test has passed. Using AI to blindly submit PR will weaken the trust value of the community.
--
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: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org