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

Distributed writes #26

Closed
wants to merge 23 commits into from
Closed

Distributed writes #26

wants to merge 23 commits into from

Conversation

eaneto
Copy link
Owner

@eaneto eaneto commented May 11, 2024

No description provided.

eaneto added 20 commits May 23, 2024 20:14
At least now the server can elect leaders

TODO:
Fix broadcasting, it may not be working
It's very hard to debug when there are election happening all the time,
to I commented out the automatic election process and added a new start
election command(which will be dropped in the final implementation).

Fixed a deadlock on the receive_vote function on the voted_for function.
replaced all structures in Server to be thread safe.
Update unvote method to clear all votes received, instead of just the
vote on the node itself, this way if a node has previously received a
vote from a dead node it doesn't become a leader by mistake.
@eaneto eaneto force-pushed the distributed-writes branch from 359b973 to b70099c Compare May 23, 2024 23:14
eaneto added 3 commits May 23, 2024 20:30
it's basically already single threaded, no reason to keep the code the
way it is.
@eaneto
Copy link
Owner Author

eaneto commented Oct 19, 2024

Moved to https://github.com/eaneto/raft

@eaneto eaneto closed this Oct 19, 2024
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

Successfully merging this pull request may close these issues.

1 participant