-
Notifications
You must be signed in to change notification settings - Fork 26
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: implements appendEntriesResponse #129
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im guessing you followed Figure 2 from https://raft.github.io/raft.pdf
Can you please add comments over the lines which do anything?
For example if nodeTerm > leaderTerm
, you must write Reply false if term < currentTerm
or something justifying it. Makes reviewing and reading later easier.
This kind of things are already mentioned in the design doc, that's why I didn't commented about that due to writing same thing two times. |
Yes but please do. |
When appendEntry RPC is sent by leader to other nodes, this function generate response for the leader and handles the entries that should be stored in node logs.