You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RaftActor can send TakeSnapshot message during entity recovery.
Index of the snapshot is determined by lastApplied at sending TakeSnapshot.
RaftActor can provide new events to the entity during entity recovery and this process increments lastApplied.
RecoveryState message to recovery the entity is created from lastApplied.
These will cause a mismatch of the index of the snapshot and recovered state of the entity.
For more details, see #111.
The Activate message allows RaftActor to restore the state at just RaftActor creates the entity.
Overview
branch for reproduction: 6c10bb7...sandbox/consistency-leak-entity
Solution 1:
ReplicatedEntity
manages its own recoveryReplicatedEntity
can produce a snapshot toRaftActor
for firstTakeSnapshot
Solution 2:
ReplicatedEntity
drop events ofRecoveryState
Solution 3:
ReplicatedEntity
ignoresTakeSnapshot
while recoveringReplicatedEntity
cannot produce a snapshot toRaftActor
for firstTakeSnapshot
The text was updated successfully, but these errors were encountered: