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

Sometimes raft deadlocks #189

Closed
LK4D4 opened this issue Mar 18, 2016 · 2 comments
Closed

Sometimes raft deadlocks #189

LK4D4 opened this issue Mar 18, 2016 · 2 comments

Comments

@LK4D4
Copy link
Contributor

LK4D4 commented Mar 18, 2016

We saw it on ci: on 3-machine cluster creation sometimes nodes can't decide who is leader and hang on term 2 forever:

    node 1: term 2, leader 1
    node 2: term 2, leader 1
    node 3: term 2, leader 3

It appears on CI pretty often I think because of limited CPU time, I saw it on my machine as well when used smaller raft tick.
I dunno, maybe will be fixed by #131

@abronan
Copy link
Contributor

abronan commented Mar 24, 2016

It's just a race on adding new nodes, this might indeed be fixed by mechanisms introduced in #131. The problem is that etcd rejects configuration changes submitted concurrently. One will pass, the other will get rejected. Thus node 3 tries to join but node 2 is still in the process of joining. node 3 join gets rejected and it ends up being alone thus electing itself as the leader.

@aaronlehmann
Copy link
Collaborator

I think this is fixed by the combination of #131 and #237. Okay to close?

@abronan abronan closed this as completed Apr 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants