You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's hanging because clientv3.New used to block until it could establish a connection to the cluster. It now only blocks if a DialTimeout is given. Cf. #6162 for more background. Thanks!
Hi
First of all: thanks for that great software!
I tried to write a etcd cluster health check for a tool we are creating.
I was inspired by the code in etcdctl. And I noticed a strange behavior in the clients
New
method, when the etcd daemon is not running.Here the test:
I see the following endpoint:
Test hangs until timeout.
As workaround I can use
net.DialTimeout(network, address string, timeout time.Duration)
.It was just surprising to me and I was wondering if this is wanted behavior.
The text was updated successfully, but these errors were encountered: