Skip to content

NGSOK-1130: Forcefully exit driver Pod to avoid hung in Running state#20

Merged
giggsoff merged 1 commit into
4.0.1-developfrom
feature/4/NGSOK-1130
Jan 20, 2026
Merged

NGSOK-1130: Forcefully exit driver Pod to avoid hung in Running state#20
giggsoff merged 1 commit into
4.0.1-developfrom
feature/4/NGSOK-1130

Conversation

@giggsoff

Copy link
Copy Markdown
Collaborator

What changes were proposed in this pull request?

In case of ranger audit enabled with Ozone+Zookeeper we have non-daemon thread with zkConnectionManagerCallback prefix which do not allow Pod to stop. Let's explicitly run sys.exit to invoke shutdown hooks and exit pod with exit code based on error existence.

Why are the changes needed?

To be able to stop driver k8s Pod with non-daemon threads.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Manually, with k8s master in cluster mode with Ozone+Zookeeper enabled. Tested exit code in case of wrong app as well.

Was this patch authored or co-authored using generative AI tooling?

No

In case of ranger audit enabled with Ozone+Zookeeper we have non-daemon
thread with `zkConnectionManagerCallback` prefix which do not allow Pod
to stop. Let's explicitly run `sys.exit` to invoke shutdown hooks and
exit pod with exit code based on error existence.

Signed-off-by: Petr Fedchenkov <giggsoff@gmail.com>
@giggsoff giggsoff requested a review from Asmoday January 19, 2026 14:28
@github-actions github-actions Bot added the CORE label Jan 19, 2026
@giggsoff giggsoff merged commit b6617b5 into 4.0.1-develop Jan 20, 2026
16 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants