Skip to content

[Fix-16789][Task] Treat already-exited process as successful kill - #18491

Open
richardmilles wants to merge 1 commit into
apache:devfrom
richardmilles:Fix-16789
Open

[Fix-16789][Task] Treat already-exited process as successful kill#18491
richardmilles wants to merge 1 commit into
apache:devfrom
richardmilles:Fix-16789

Conversation

@richardmilles

Copy link
Copy Markdown

Was this PR generated or assisted by AI?

Yes, assisted by AI.

Purpose of the pull request

Fixes #16789

Replaces #18468 (closed for missing PR template).

Killing an already-exited process fails and can surface as task stop errors (e.g. Flink stop).

Brief change log

  • Treat an already-exited process as a successful kill in ProcessUtils.kill

Verify this pull request

This pull request is already covered by existing tests, such as process kill/unit tests around ProcessUtils.

  • Manual: stop a task whose process has already exited and confirm no false failure

Pull Request Notice

Pull Request Notice

If your pull request contains incompatible change, you should also add it to docs/docs/en/guide/upgrade/incompatible.md

Avoid pstree failure when stopping a Flink (or other) task whose client process has already exited.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] [Flink] stop flink job error

1 participant