-
Notifications
You must be signed in to change notification settings - Fork 41.6k
kubelet: fix data races #116706
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
kubelet: fix data races #116706
Conversation
1028c12 to
7dcc5ad
Compare
I stress in my env. |
|
/priority critical-urgent |
|
/assign @smarterclayton |
7dcc5ad to
7bd7523
Compare
|
/lgtm Thank you! |
f1b045e to
34d38b0
Compare
pkg/kubelet/kubelet.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow-up for a separate PR, but if the statusManager.SetPodResizeStatus call fails, it looks like we're still assigning to the pod (pod.Status.Resize = resizeStatus) and passing the updated pod to podManager (kl.podManager.UpdatePod(pod)). Is that right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It ends up doing nothing (resize fails) last I tried simulating failure. I updated PR #116702 to explicitly return for now so it is more obvious. There's a TODO to investigate if this can be handled better. I have some ideas but I need to really understand Clayton's plans to see if we can work something out to make it more resilient.
/cc @smarterclayton
|
lgtm, will let kubelet approver ack /retest |
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
34d38b0 to
5134520
Compare
|
@vinaykul Your PR fixes the pod object update race. And this PR will fix race in kubemark TestHollowNode/kubelet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
LGTM label has been added. Git tree hash: a86a0a13431bc6582c2950e0f203248967c06cb5
|
|
/approve since this was trimmed down to more obviously safe race fixes |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, pacoxu 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 |
|
/milestone v1.27 |
|
Delayed lgtm, thank you for the fix. /lgtm |
What type of PR is this?
/kind flake
for data race
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #116696
Special notes for your reviewer:
Does this PR introduce a user-facing change?