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

client Sync should exclude learner endpoint #13853

Closed
Tracked by #13894
yishuT opened this issue Mar 30, 2022 · 2 comments
Closed
Tracked by #13894

client Sync should exclude learner endpoint #13853

yishuT opened this issue Mar 30, 2022 · 2 comments
Labels

Comments

@yishuT
Copy link
Contributor

yishuT commented Mar 30, 2022

What happened?

We see etcdserver: rpc not supported for learner error from clients with AutoSync enabled. https://github.com/etcd-io/etcd/blob/main/client/v3/client.go#L188 here does not exclude learner endpoint

What did you expect to happen?

Either requests are not sent to learner endpoints only or learner endpoints proxy requests to non learner member

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

Add a new member but do not promote it, and wait for client autosync to pick the new member

Anything else we need to know?

No response

Etcd version (please run commands below)

etcdctl version: 3.5.0
API version: 3.5

Etcd configuration (command line flags or environment variables)

paste your configuration here

Etcd debug information (please run commands blow, 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

@serathius
Copy link
Member

There is a PR in flight #13837

@serathius serathius mentioned this issue Apr 6, 2022
28 tasks
@serathius
Copy link
Member

Fix will be available in v3.5.3

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

2 participants