-
Notifications
You must be signed in to change notification settings - Fork 0
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
raft learner issue #7
Comments
We do plan to have learner member serve ONLY serializable read and endpoint status. But currently such limitation is not implemented yet. So I would expect |
I was able to reproduce this. From learner node's log, it looks like learner is not able to get read index from leader, which is part of serving linearizable read. I will take a closer look.
|
Looks like we found a bug. When leader receives a readIndex request, it assumes the request is from local node (leader itself) if Lines 1025 to 1051 in a1408c5
|
Fixed by etcd-io#10590. |
great |
etcdserver: add v3 request type for cluster attr
code: learner branch
os: Mac
reproduce procedure:
1 start one main node with default setting, like
etcd
2 use
bin/etcdctl member add infra2 --peer-urls=127.0.0.1:23800 --learner
to add a learner node
3 start the learner node, like
4 Then send a read request to the learner node after a while(wait to receive the snapshot). The result is as below:
Not quite as the desgin doc said, the learner node can serve read request.
The main server log
the learner node log
The text was updated successfully, but these errors were encountered: