Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix deadlock between play kube and cleanup #2

Closed
wants to merge 1 commit into from

Conversation

tyler92
Copy link
Owner

@tyler92 tyler92 commented Jul 19, 2022

There was a deadlock between two concurrent processes: play kube and cleanup,
that is called after container exit when RestartPolicy is used. Before the fix,
the cleanup command didn't lock Pod's lock, so there was a possibility of
obtaining two locks in different order in two processes.

[NO NEW TESTS NEEDED]

Closes containers#14921

Does this PR introduce a user-facing change?

No

@tyler92 tyler92 force-pushed the fix-deadlock-on-cleanup branch from ddcc796 to ba7a72b Compare July 19, 2022 08:25
There was a deadlock between two concurrent processes: play kube and cleanup,
that is called after container exit when RestartPolicy is used. Before the fix,
the cleanup command didn't lock Pod's lock, so there was a possibility of
obtaining two locks in different order in two processes.

[NO NEW TESTS NEEDED]

Closes containers#14921

Signed-off-by: Mikhail Khachayants <[email protected]>
@tyler92 tyler92 force-pushed the fix-deadlock-on-cleanup branch from ba7a72b to e7dfdba Compare July 19, 2022 14:19
@tyler92 tyler92 closed this Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deadlock when RestartPolicy is used
1 participant