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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
