lerna-stack / akka-entity-replication

Akka extension for fast recovery from failure with replicating stateful entity on multiple nodes in Cluster
Apache License 2.0
30 stars 1 forks source link

RaftActor commits index not to conflict with succeeding AppendEntries #166

Closed xirc closed 2 years ago

xirc commented 2 years ago

Closes #165

On the receiving of AppendEntries message, except for empty entries, the receiver RaftActor cannot commit leaderCommit if leaderCommit is greater than or equal to the last index of received entries. Other succeeding AppendEntries messages can conflict with an existing entry with an index less than or equal to leaderCommit but greater than the last index of received entries. Instead, the receiver can commit the last index of received entries.