Skip to content
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

dial-timeout option does not take effect on the watch command. #18335

Open
4 tasks done
chengjoey opened this issue Jul 16, 2024 · 1 comment · May be fixed by #18336
Open
4 tasks done

dial-timeout option does not take effect on the watch command. #18335

chengjoey opened this issue Jul 16, 2024 · 1 comment · May be fixed by #18336
Assignees
Labels
area/clientv3 area/etcdctl priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. type/bug

Comments

@chengjoey
Copy link

chengjoey commented Jul 16, 2024

Bug report criteria

What happened?

image

ETCDCTL_API=3 etcdctl --dial-timeout=2s --endpoints=localhost:2379 watch /foo

I don't have etcd-server running locally, and I have specified dial-timeout as 2s,but etcdctl keep stuck, which makes people wonder if the connection is successful but the data is not updated.

What did you expect to happen?

If the specified dial-timeout is exceeded and the endpoints cannot be connected, an error is returned.

How can we reproduce it (as minimally and precisely as possible)?

the endpoint targets are not running etcd-server, and running follow command:

ETCDCTL_API=3 etcdctl --dial-timeout=2s --endpoints=localhost:2379 watch /foo

Anything else we need to know?

image

get command working well

Etcd version (please run commands below)

$ etcd --version
# paste output here

$ etcdctl version
# 3.5.12

Etcd configuration (command line flags or environment variables)

paste your configuration here

Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)

$ etcdctl member list -w table
# paste output here

$ etcdctl --endpoints=<member list> endpoint status -w table
# paste output here

Relevant log output

No response

@chengjoey
Copy link
Author

/assign

@jmhbnz jmhbnz added area/clientv3 priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. area/etcdctl labels Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/clientv3 area/etcdctl priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. type/bug
Development

Successfully merging a pull request may close this issue.

2 participants