Akka extension for fast recovery from failure with replicating stateful entity on multiple nodes in Cluster
30
stars
1
forks
source link
Fix lost committed events by moving leader during snapshot synchronization #134
Closed
negokaz closed 2 years ago
Closes #133
Overview
SnapshotSyncStarted
that is written when snapshot synchronization startedlastSnapshotState.isDirty
that indicate that snapshot synchronization is incompleteSnapshotSyncStarted
AppendEntries
iflastSnapshotState.isDirty
istrue
InstallSnapshot
that is sent by the leader with old snapshots than the previous leaderlastSnapshotState.targetSnapshotLastTerm
andlastSnapshotState.targetSnapshotLastLogIndex
SnapshotSyncStarted
Starting snapshot synchronization resets RaftActor's logThis allows quick recovery for the delayed follower by adjusting the leader'snextIndex
during the synchronizationElectionTimeout