-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
integration: add WatchProgressNotifyInterval in integration test #12271
integration: add WatchProgressNotifyInterval in integration test #12271
Conversation
cc @wojtek-t |
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.
Nice! lgtm
Thanks @jingyih
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.
Thanks a lot @jingyih - just one minor comment, other than that LGTM.
clientv3/integration/watch_test.go
Outdated
if !resp.IsProgressNotify() { | ||
t.Fatalf("expected resp.IsProgressNotify() == true") | ||
} | ||
case <-time.After(2 * progressInterval): |
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.
nit: this may be a little flaky in cpu-starved environments, I suggest increasing this a little bit (to at least 1s)
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.
done. Thanks!
00b6cb1
to
7fc4364
Compare
7fc4364
to
73817b5
Compare
LGTM - thanks! |
@gyuho @jpbetz - would you be able to merge this? IIRC it's blocking cherrypicking back to 3.4, which in turn is blocking https://github.com/kubernetes/enhancements/tree/master/keps/sig-api-machinery/1904-efficient-watch-resumption (or to be more specific: kubernetes/kubernetes#94364) |
LGTM |
…1-upstream-release-3.4 Automated cherry pick of #12271 on release 3.4
Flag
WatchProgressNotifyInterval
was added to etcdserver in #12216. This PR adds the corresponding flag to integration test so we can utilize it in tests.Fixes #12265