lerna-stack / akka-entity-replication

Akka extension for fast recovery from failure with replicating stateful entity on multiple nodes in Cluster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SnapshotStore doesn't reply with SnapshotNotFound some times

xirc opened this issue · comments

SnapshotStore (or ShardSnapshotStore) should reply with SnapshotNotFound if it has no EntitySnapshot and is saving an EntitySnapshot. For example, when an entity (ReplicatedEntityBehavior) is recovering, the entity waits for a response from ShardSnapshotStore. If ShardSnapshotStore replies with SnapshotNotFound, the entity can continue its recovery. If ShardSnapshotStore replies with nothing, the entity might get recovery timed out. This case might rarely happen because the entity might be already recovered when SnapshotStore receives a SaveSnapshot command.

Related code: