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
Hi there and thanks for sharing this project. I'm keen to introduce Raft into one of my projects in which there is a predefined cluster. During boot I'm getting the follower error on 2 of the three nodes:
panic: raft.membership: attempted to send msg to local member; should never happen
@alexanderturner Unable to reproduce the issue from the given code, do you use the same WithMembers configuration with all hosts?
Docs:
WithMembers add the given members to the raft node.
WithMembers safe to be used with initiate cluster kind options, ("WithForceNewCluster", "WithRestore", "WithInitCluster") Otherwise, it may conflicts with other options like WithJoin.
As long as only one url member, WithMembers will only set the current node, then it will be safe to be composed with other options even "WithJoin".
WithMembers and WithInitCluster must be applied to all cluster nodes when they are composed, Otherwise, the quorum will be lost and the cluster become unavailable.
Node A:
n.Start(WithInitCluster(), WithMembers(<node A>, <node B>))
Node B:
n.Start(WithInitCluster(), WithMembers(<node B>, <node A>))
Note: the first member will be assigned to the current node.
Hi there and thanks for sharing this project. I'm keen to introduce Raft into one of my projects in which there is a predefined cluster. During boot I'm getting the follower error on 2 of the three nodes:
Here is the relevant code
Not sure if this is misconfigured on my side or if there's an issue here. Would greatly appreciate you assistance.
The text was updated successfully, but these errors were encountered: