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

update AppendEntriesFailureResponse#expectedNextIndex to speed up log index match #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JoeCqupt
Copy link

speed up log index match

@JoeCqupt
Copy link
Author

@metanet PTAL

@metanet
Copy link
Collaborator

metanet commented Mar 16, 2024

thanks for your pull request @JoeCqupt.

sorry for my late reply. i am usually quite busy with work on weekdays and mostly available on weekends.

no idea what the change is doing. can you provide a description of the change, how does it speed up follower catch up and why it is safe?

@JoeCqupt
Copy link
Author

JoeCqupt commented Apr 3, 2024

as the author mentioned in his paper that the protocol can be optimized to reduce the number of rejected
AppendEntries RPCs

dissertation#basicraft/consensus.tex#L403

I referred to some optimizations of existing systems:

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.

None yet

2 participants