Add an implementation of the Raft consensus protocol#223
Open
JoshHuttonCode wants to merge 62 commits intoapache:masterfrom
Open
Add an implementation of the Raft consensus protocol#223JoshHuttonCode wants to merge 62 commits intoapache:masterfrom
JoshHuttonCode wants to merge 62 commits intoapache:masterfrom
Conversation
fixed a race condition in deploy_local.sh
raised timeout window and heartbeat interval
Also updated ReceiveTransaction Also updated ReceiveAppendEntries
…d used it in ReceiveAppendEntriesResponse
Heartbeat is skipped if leader recently broadcasted AppendEntries Added logic for followers to truncate their log when leader sends conflicting entries
changed variable names for semanatic value removed one line conditionals for readability
…ding in upstream code
Raft catchup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Our team's Fall 2025 Class project that @hammerface and I would like to continue to work on.
Still to do:
We still plan to implement persistent state and snapshots. This will be handled by integrating the current Checkpointing and Recovery systems.
Additionally, we may like to reorganize some of the Raft functions. Split them up into smaller functions, extract common code if possible. We are also considering redoing the leader election manager, specifically with regards to how the multithreading is handled.