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

split brain issue? #8

Open
dbainbri-ciena opened this issue Jan 3, 2024 · 1 comment
Open

split brain issue? #8

dbainbri-ciena opened this issue Jan 3, 2024 · 1 comment

Comments

@dbainbri-ciena
Copy link

I am experimenting with dinghy using 3 nodes each in their own container. I noticed that when I shutdown 2 of the nodes the remaining node becomes the leader. This would mean, i think, that if there was a network issue such that the node "a" was cut off from nodes "b" and "c", then node "a" would become a leader and "b" and "c" would elect a leader as well.

This was different from my assumption in that I expected that in the case where a consensus could not be reached no leader would be elected. Is my assumption just incorrect for this implementation?

@dbainbri-ciena
Copy link
Author

I think the condition for TooFew needs to be modified to votes < int(len(d.Nodes)/2)+1 . Still testing this. I am also noticing that the when the initial leader is lost it takes a significant time to re-elect.

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

1 participant