Closed pav-kv closed 6 months ago
@ahrtr PTAL. Forked this from #134. This reduces the amount of unnecessary empty MsgApp
messages, see the effect on the tests in testdata
.
@serathius Can I ask you to review this too? CRDB reviewers are OOO this week.
@bdarnell This addresses your comment to a good degree, without changing the protocol.
@serathius Could you take a look please?
@ahrtr Are you expecting a second review? Can this be merged? Alternatively, could you start reviewing #134 that's built on top of this PR (just ignore the first two commits which are this PR)?
@ahrtr Are you expecting a second review?
Yes, it's definitely better to have a second review for any behaviour or logic change. We need to minimize any risk as much as possible.
For any mechanical change, such as just renaming or simple code refactor, it's OK to merge with only one approval. Such as https://github.com/etcd-io/raft/pull/172
could you start reviewing #134
It's in my to-do list. Will take a look later.
@serathius ping
@ptabor @spzala Could you review/approve please?
@ahrtr All actionable comments in this PR are resolved, and the open discussion motivates a second PR #132 after this one. This PR is ready for merge.
Please also rebase this PR to resolve the workflow failure.
@ahrtr done
This commit adds a
Progress.sentCommit
field tracking the highest commit index which the leader sent to the follower. It is used to distinguish cases when a commit index update needs or doesn't need to be sent to a follower.Touches #131