Ivan Andika created RATIS-2835:
----------------------------------
Summary: Add CommitInfoProto to ReadIndexReplyProto
Key: RATIS-2835
URL: https://issues.apache.org/jira/browse/RATIS-2835
Project: Ratis
Issue Type: Improvement
Reporter: Ivan Andika
Assignee: Ivan Andika
Please refer to
[https://github.com/apache/ratis/pull/1340#pullrequestreview-3758708283]
Instead of trigger a heartbeat, how about adding a {{CommitInfoProto}} list to
{{{}ReadIndexReplyProto{}}}? Then, the follower can update the commit indices
with the reply. This would reduce the number of AppendEntries which might
reduce the network pressure.
However, the main concern is about correctness. Currently, I don't see any
precedence in any Raft implementation that returns the CommitInfoProto as part
of the ReadIndexReplyProto. Being a consensus algorithm, we need to understand
whether adding CommitInfoProto will actually affect correctness.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)