-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Make watch cache treat resourceVersion consistent with uncached watch #24008
Conversation
Labelling this PR as size/XS |
35f7fb0
to
07f62c9
Compare
cc @wojtek-t |
looks like there are package-level tests that are ensuring incorrect behavior... working on fixing those up |
4b9a9e0
to
c133923
Compare
😞 We should probably add a api-compatability test. |
GCE e2e build/test passed for commit fb88b2cce4ca58a7a73f5fff80e900e9d150d41b. |
GCE e2e build/test passed for commit 35f7fb0c4183ec6abf74d04b8224482668773afb. |
GCE e2e build/test passed for commit 07f62c94b85ec712d39de5c5192350e684f84da8. |
GCE e2e build/test passed for commit 4b9a9e01d2430561b892f929c9e025ee9b9fa1cb. |
GCE e2e build/test passed for commit c1339239c6860c998a8651465c2ee59a785f3c10. |
Labelling this PR as size/M |
unit tests updated:
|
verifyWatchEvent(t, nowWatcher, watch.Added, podFooPrime) | ||
|
||
_ = updatePod(t, etcdStorage, podFooBis, fooUpdated) | ||
|
||
t.Log("verifying") |
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.
please remove
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.
I'd like to keep these. If the verify calls fail, there is no way to tell which one failed
@liggitt - thanks for finding this issue |
@wojtek-t anything else before I tag and open a cherrypick? |
@liggitt - I would prefer changing those "verifying" logs to something more useful (to be honest I would prefer to remove them even more :P) |
Once changed, feel free to self-apply lgtm label |
removed the "verifying" lines, logged the calling line in verifyWatchEvent in failure cases |
LGTM - thanks! |
GCE e2e build/test passed for commit ada6023. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit ada6023. |
Automatic merge from submit-queue |
…8-upstream-release-1.2 Automated cherry pick of #24008
Commit found in the "release-1.2" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked. |
…k-of-#24008-upstream-release-1.2 Automated cherry pick of kubernetes#24008
…k-of-#24008-upstream-release-1.2 Automated cherry pick of kubernetes#24008
Fixes #24004
This makes the watch cache handle resourceVersion consistent with an uncached watch API call, and the documented behavior. Watching from resourceVersion=X delivers watch events after version X (X is not included):