-
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
client/v3 fix watch API blocked forever even with WithRequireLeader
option
#17622
base: main
Are you sure you want to change the base?
Conversation
Hi @346999452. Thanks for your PR. I'm waiting for a etcd-io 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. 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. |
Hi, @346999452, thanks for your PR. It seems like your commit wasn't properly signed off. The proper syntax is
Could you please amend your commit and push it again? so the developer certificate of origin (DCO) check passes, i.e: git commit --amend --signoff # Fix the signed off trailer
git push --force |
f70abbe
to
a921a9b
Compare
Signed-off-by: [email protected] <[email protected]>
a921a9b
to
5b22764
Compare
/ok-to-test |
Can you provide a test to verify that the PR fixes the issue #17611? |
The watch method is used as normal, it is difficult to reproduce the problem in real scenarios. The serveWatchClient method can be modified for easy reproduction
then it will be blocked forever |
@346999452, I think if you can provide (write) a unit or integration test for this, it would be the best. |
There is nothing special about the unit testing, because the block is not caused by the way it is used, but by some extreme scenario This code may not print 'watch success', or it may blocked while receiving from the watch channel |
This will greatly increase the confidence of this PR if you can reproduce this problem in CI. |
I agree. Writing the test in |
/retitle client/v3 fix watch API blocked forever even with |
WithRequireLeader
option
Fixes #17611