[
https://issues.apache.org/jira/browse/RATIS-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18136227#comment-18136227
]
Tsz-wo Sze commented on RATIS-1562:
-----------------------------------
There are two cases:
- installSnapshot: seems okay
-- the LogAppender thread is sending snapshots so it can't send AppendEntries.
- notifyInstallSnapshot: also seems okay
-- shouldNotifyToInstallSnapshot() will keep returning the firstAvailable
index. Then, it will only send installSnapshotNotification and heartbeats but
not AppendEntries.
I only have checked the code briefly. Could you verify it and/or add a test?
Assigning this to you. Thanks for helping out!
> Do not send AppendEntries while InstallSnapshot is in progress
> --------------------------------------------------------------
>
> Key: RATIS-1562
> URL: https://issues.apache.org/jira/browse/RATIS-1562
> Project: Ratis
> Issue Type: Improvement
> Components: server
> Reporter: Kaijie Chen
> Priority: Major
>
> It is wasting of rpcs to send AppendEntries while InstallSnapshot is in
> progress. Because the reply from the follower will always be INCONSISTENCY.
> See following design doc from etcd as a reference. Maybe we should also
> introduce the follower progress state to Ratis.
> https://github.com/etcd-io/etcd/blob/main/raft/design.md
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)