-
Notifications
You must be signed in to change notification settings - Fork 1.1k
OCPNODE-2408: internal/oci: remove redundant ShouldBeStopped check for stopping containers #8300
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
OCPNODE-2408: internal/oci: remove redundant ShouldBeStopped check for stopping containers #8300
Conversation
9583567 to
e7feb48
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8300 +/- ##
==========================================
- Coverage 49.52% 49.49% -0.03%
==========================================
Files 153 153
Lines 17085 17091 +6
==========================================
- Hits 8462 8460 -2
- Misses 7559 7567 +8
Partials 1064 1064 |
a88b010 to
1f8c21b
Compare
968a36c to
5bebf14
Compare
5bebf14 to
b0daa4f
Compare
3f90ccb to
407edb6
Compare
|
/retest |
1 similar comment
|
/retest |
|
/test ci-fedora-critest |
|
The test failure is not related to this PR. |
|
@cri-o/cri-o-maintainers PTAL |
|
/override ci/prow/ci-fedora-critest |
|
@haircommander: Overrode contexts on behalf of haircommander: ci/prow/ci-fedora-critest 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. |
|
/retest |
4 similar comments
|
/retest |
|
/retest |
|
/retest |
|
/retest |
|
/override ci/prow/ci-cgroupv2-integration |
|
@haircommander: Overrode contexts on behalf of haircommander: ci/prow/ci-cgroupv2-integration, ci/prow/ci-fedora-kata 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.30 |
|
@sohankunkerkar: #8300 failed to apply on top of branch "release-1.30": 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.29 |
|
@sohankunkerkar: #8300 failed to apply on top of branch "release-1.29": 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. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
This commit removes the
ShouldBeStoppedfunction to address the issue where stopping container blocks all further stop attempts for the same container. That function acquired theopLockmutex 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
StopContainerfunction by calling theLivingmethod, which checks if the container's process is still running. Therefore, theShouldBeStoppedfunction is redundant and can be removed.Which issue(s) this PR fixes:
Fixes #8030.
Special notes for your reviewer:
None
Does this PR introduce a user-facing change?