-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[release 1.26] internal/oci: remove redundant ShouldBeStopped check for stopping containers #8396
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
[release 1.26] internal/oci: remove redundant ShouldBeStopped check for stopping containers #8396
Conversation
Fixes cri-o#8030 This commit removes the ShouldBeStopped function to address the issue where stopping a container blocks all further stop attempts for the same container. That function acquired the opLock mutex to check the container's state, which could lead to contention and potential deadlocks if other goroutines were waiting to acquire the same lock. Additionally, the container's state is checked later in the StopContainer function by calling the Living method, which checks if the container's process is still running. Therefore, the ShouldBeStopped function is redundant and can be removed. Signed-off-by: Sohan Kunkerkar <[email protected]>
Signed-off-by: Sohan Kunkerkar <[email protected]>
Signed-off-by: Sohan Kunkerkar <[email protected]>
Signed-off-by: Sohan Kunkerkar <[email protected]>
|
@cri-o/cri-o-maintainers PTAL |
|
/approve |
|
/retest |
|
A friendly reminder that this PR had no activity for 30 days. |
|
@cri-o/cri-o-maintainers, please have a look. Thank you! |
|
/unhold |
|
@saschagrunert, please have a look! Thank you! |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kwilczynski, saschagrunert, sohankunkerkar The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@cri-o/cri-o-maintainers, please have a look. Thank you! |
|
/override ci/prow/e2e-gcp |
|
@haircommander: Overrode contexts on behalf of haircommander: ci/prow/e2e-agnostic, ci/prow/e2e-gcp, ci/prow/images In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/cherry-pick release-1.25 |
|
@rphillips: #8396 failed to apply on top of branch "release-1.25": In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
This is a manual cherry-pick of #8300
/assign sohankunkerkar