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

Raft leader should set appropriate previous values (prevLogIndex and prevLogTerm) to batched AppendEntries #122

Merged
merged 6 commits into from
Jan 24, 2022

Conversation

xirc
Copy link
Contributor

@xirc xirc commented Jan 18, 2022

Closes #123

@xirc xirc changed the title Raft leader should set appropriate previous values (prevLogIndex andprevLogTerm) to batched AppendEntries Raft leader should set appropriate previous values (prevLogIndex and prevLogTerm) to batched AppendEntries Jan 18, 2022
@xirc xirc added this to the v2.1.0 milestone Jan 18, 2022
@xirc xirc force-pushed the fix-batched-append-entries branch from d053e60 to 3f86d20 Compare January 18, 2022 08:09
Taichi Yamakawa added 3 commits January 18, 2022 17:41
…d `prevLogTerm`) to batched AppendEntries

The `prevLogIndex` should be the last index of the previous batch.
The `prevLogTerm` should be the last term of the previous batch.
@xirc xirc force-pushed the fix-batched-append-entries branch from 3f86d20 to 17c2370 Compare January 18, 2022 08:45
@xirc xirc marked this pull request as ready for review January 19, 2022 00:18
@xirc xirc requested a review from negokaz January 19, 2022 00:18
Copy link
Contributor

@negokaz negokaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! LGTM 👍

@negokaz negokaz merged commit c87ff6b into master Jan 24, 2022
@negokaz negokaz deleted the fix-batched-append-entries branch January 24, 2022 02:22
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.

Raft leader uses the same previous LogEntryIndex and Term to all batched AppendEntries message
2 participants