These are chat archives for akkadotnet/akka.net
LoadSnapshotFailedoccurs. Unfortunately, it seems that I cant't use
OnRecoveryFailurecall to clear snapshots, since the actor is being stopped just after calling it (https://github.com/akkadotnet/akka.net/blob/838971a893d630bb18aeb5d6ca263e27de856a34/src/core/Akka.Persistence/Eventsourced.Recovery.cs#L111) so the clear snapshots command won't get processed. This creates a chicken-egg problem - in order to clear snapshots via command, I need to have a persistent actor created, but it won't get created until I clear the snapshots :) So my question is:
Is the whole idea of automatic snapshots deletion not good/dangerous for some reason?
DeleteSnapshotscommand is not handled by the persistent actor, but by the underlying SnapshotStore, so I kinda can do what I wrote about - send the message in OnRecoveryFailure, then eventually (after some restarts) the actor will load only from events. But it feels hacky, so I figured I'd ask if anyone else had similar situation.
Childactor, the source code above?