-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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: DRA: fix cache integrity #124323
kubelet: DRA: fix cache integrity #124323
Conversation
Please note that we're already in Test Freeze for the Fast forwards are scheduled to happen every 6 hours, whereas the most recent run was: Mon Apr 15 13:51:40 UTC 2024. |
/sig node |
97cc4eb
to
212906b
Compare
d815a31
to
0120ab2
Compare
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.
First pass
0120ab2
to
f046a6a
Compare
6cee1b6
to
f24134d
Compare
// Atomically perform some operations on the claimInfo cache. | ||
err := m.cache.withLock(func() error { | ||
// Delete all claimInfos from the cache that have just been unprepared. | ||
for _, claimName := range claimNamesMap { |
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.
@klueska Should we loop over response.Claims
here?
@klueska I've just pushed e2e changes to this branch. All test cases passed locally:
|
d73c603
to
c57880e
Compare
/test pull-kubernetes-kind-dra |
/test pull-kubernetes-kind-dra |
3 similar comments
/test pull-kubernetes-kind-dra |
/test pull-kubernetes-kind-dra |
/test pull-kubernetes-kind-dra |
/assign @pohly |
I don't see any comments, so assuming everything is good and going to lgtm this PR to get it merged in a couple of days. |
/unhold |
@bart0sh: you cannot LGTM your own PR. 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. |
c57880e
to
f24134d
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bart0sh, klueska 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 |
Thanks @bart0sh |
LGTM label has been added. Git tree hash: f2cf81dedebf7d9e09a8622fbb810aa36b80e412
|
/retest |
What type of PR is this?
/kind bug
/kind cleanup
What this PR does / why we need it:
Changed ClaimInfo and claimInfoCache APIs to avoid updating cached claim infos when the cache is not locked.
This should fix possible data race conditions caused by changing cached claim infos.
Added new unit and e2e_node test cases to test cache integrity.
Which issue(s) this PR fixes:
Fixes #123474 #116411
Special notes for your reviewer:
This is a second attempt to fix #123474. See previous PR and this review comment for more details.
Does this PR introduce a user-facing change?