-
Notifications
You must be signed in to change notification settings - Fork 228
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 handling of eviction in StrictFIFO to ensure the evicted workload is in the head #2061
Conversation
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
/assign @alculquicondor |
This is a test for StrictFIFO, so we should not let other workloads slip through. We need to fix the code instead. I think we need to atomically add the workload to the queue, when removing it from the cache. |
Sure, I will explore this option for making it atomic. My reasoning was that |
/kind bug |
Pushed a change. PTAL. One thing I'm not sure is that now I re-queue immediately in case when BestEffortFIFO is used, |
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
/approve
LGTM label has been added. Git tree hash: c7ab2cc316d2f07ef28e2ebf91faf151898ea287
|
/hold |
/hold cancel |
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
Thank you!
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, mimowo, tenzen-y 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 |
LGTM label has been added. Git tree hash: 92b1951571c937e740940122e17693a62e15c9fa
|
/cherry-pick release-0.6 |
@tenzen-y: once the present PR merges, I will cherry-pick it on top of release-0.6 in a new PR and assign it to you. 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/test-infra repository. |
@tenzen-y: #2061 failed to apply on top of branch "release-0.6":
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/test-infra repository. |
I will prepare the branch manually |
Actually, it turns out the conflict is only with #2062, and both seem reasonable to include. WDYT? |
As I mentioned here (#2062 (comment)), +1 on @mimowo |
/cherry-pick release-0.6 |
@tenzen-y: new pull request created: #2081 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/test-infra repository. |
What type of PR is this?
/kind cleanup
/kind flake
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #2020
Special notes for your reviewer:
In this scenario occasionally the workload
pendingAlphaWl
gets admitted beforeuseAllAlphaWl
is requeued.
The scenario can be reproduced reliably by inserting a time delay (say 500ms) around here, between
r.cache.DeleteWorkload(wl)
and!r.queues.AddOrUpdateWorkload(wlCopy)
.Does this PR introduce a user-facing change?