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

invoke the Lock function in concurrency package will get stuck in when etcd servers are not available #18082

Open
4 tasks done
littlekuo opened this issue May 28, 2024 · 0 comments
Labels

Comments

@littlekuo
Copy link

littlekuo commented May 28, 2024

Bug report criteria

What happened?

when etcd servers are not available, invoke the Lock function maybe stuck in the following places because client.cancel() only be invoked when client close, but usually we only close client when process exit.

截屏2024-05-28 14 49 14 截屏2024-05-28 14 59 56

m.Unlock(client.Ctx()) maybe should be changed to m.Unlock(ctx) which ctx is the param of Lock func?

What did you expect to happen?

nothing

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

see the description

Anything else we need to know?

No response

Etcd version (please run commands below)

$ etcd --version
# paste output here

$ etcdctl version
# paste output here

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant