-
Notifications
You must be signed in to change notification settings - Fork 40.2k
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(kubelet): protect containerCleanupInfos
from concurrent map writes
#93773
fix(kubelet): protect containerCleanupInfos
from concurrent map writes
#93773
Conversation
Signed-off-by: knight42 <[email protected]>
/assign @Random-Liu |
/lgtm |
@matthyx I have added a regression test, could you please check again? |
Looks good, now you have to wait for code thaw... and we can contact other approvers from sig-node as well, like @derekwaynecarr |
/lgtm |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dchen1107, knight42 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 |
@andyzhangx All tests passed now. Is it okay to create cherry-pick PRs against |
yes |
@andyzhangx I have filed #94042 and #94043 |
@dchen1107 this is critical enough to create cherry picks for 1.18 and 1.17. Should this be marked as milestone 1.19 to take into the current release? |
@dchen1107 |
@knight42 |
yes |
@justaugustus Hi, would you mind adding this PR to milestone v1.20? |
@knight42 I think the best practice is to squash commits. This will also re-start tests which seems to be an unrelated failure. |
/retest Review the full test history for this PR. Silence the bot with an |
4 similar comments
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
…73-upstream-release-1.17 Automated cherry pick of #93773: fix(kubelet): protect `containerCleanupInfos` from concurrent map writes
…73-upstream-release-1.18 Automated cherry pick of #93773: fix(kubelet): protect `containerCleanupInfos` from concurrent map writes
…73-upstream-release-1.19 Automated cherry pick of #93773: fix(kubelet): protect `containerCleanupInfos` from concurrent map writes
this fix is already in |
Signed-off-by: knight42 [email protected]
What type of PR is this?
/kind bug
What this PR does / why we need it:
This PR adds a
sync.RWMutex
todockerService
to protect mapdockerService.containerCleanupInfos
from concurrent writes.Which issue(s) this PR fixes:
Fixes #93771
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: