🐛Fix behavior of rate limit option in priorityqueue.AddWithOpts#3103
🐛Fix behavior of rate limit option in priorityqueue.AddWithOpts#3103k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
Conversation
|
|
|
Hi @zach593. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
1c4fdff to
102df33
Compare
Signed-off-by: zach593 <zach_li@outlook.com>
102df33 to
ba53477
Compare
|
/ok-to-test |
|
/cherrypick release-0.20 |
|
@alvaroaleman: once the present PR merges, I will cherry-pick it on top of DetailsIn 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. |
alvaroaleman
left a comment
There was a problem hiding this comment.
great catch, thanks for that and sending the fix!
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alvaroaleman, zach593 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
LGTM label has been added. DetailsGit tree hash: c797a95efef6c9d54f182307413849d0217fb33d |
|
@alvaroaleman: new pull request created: #3106 DetailsIn 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. |
controller-runtime/pkg/controller/priorityqueue/priorityqueue.go
Lines 130 to 146 in 2e8ba92
Since
priorityqueue.AddWithOpts()allows adding multiple items, ifo.RateLimitedis true, theo.Aftervalue could get overwritten in the loop and affect subsequent items.