-
Notifications
You must be signed in to change notification settings - Fork 40.4k
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
wait.PollUntilContextCancel immediately executes condition once #119762
wait.PollUntilContextCancel immediately executes condition once #119762
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: Fri Aug 4 10:27:29 UTC 2023. |
aec6a89
to
09e4148
Compare
/cc @aojea |
/assign @aojea @smarterclayton |
09e4148
to
d4e7bb7
Compare
d4e7bb7
to
6b459e0
Compare
I don't have the context (ha) for this in my head, would really like @smarterclayton to review |
Some more comments to address. |
6db56f5
to
bc340db
Compare
df1a9e1
to
5049847
Compare
5049847
to
aee7335
Compare
/approve |
LGTM label has been added. Git tree hash: 372a65d63379e879e6f0a8c8fb0581b227907525
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AxeZhan, smarterclayton 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.29 this is a bugfix |
What type of PR is this?
/kind bug
What this PR does / why we need it:
In #118686, we make sure that wait.PollUntilContextTimeout function, if immediate is true, the condition will be invoked before waiting and guarantees that the condition is invoked at least once, regardless of whether the context has been cancelled. However, the changes in that pr will make new PollUntilContextCancel function immediately executes given condition twice, which is not mentioned anywhere. Which is not semantically same with wait.PollImmediateUntil.
Which issue(s) this PR fixes:
Fixes #119533
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: