-
Notifications
You must be signed in to change notification settings - Fork 161
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
election won't work if wrong NodeId is passed when adding node to cluster #918
Comments
👋 Thanks for opening this issue! Get help or engage by:
|
What script were you using to produce this issue? I think you're using one of the shell script in the example. And please attach the full log in DEBUG level so I can see what was happening. And I don't understand why you believe that step two/three should fail. |
sorry, my bad, they should be step 4/5. Adding non-voters with different NodeId always works, but after upgrading them to voter, killing the leader, the whole cluster stopped. I think you can reproduce it with the mem kv example. To express myself better, I redescribe it in Chinese:
期待结果
实际结果 |
OK, I see the root cause of this problem is this, node-2 expected itself to be a follower but it is acutally a leader:
Because you mistakenly configured a wrong network addresses for node-3: the endpoint address of node-3 is the address of node-2. |
version: v0.8.3
To Reproduce
Expected behavior
the following two are both OK:
Actual behavior
node 1/2 stop working, "openraft::core::tick: Tick fails to send, receiving end quit: channel closed"
The text was updated successfully, but these errors were encountered: