add LoadSnapshotFailed in snapshot protocol, #21842
* treat snapshot load failure in same way as other recovery failures * if load of snapshot fails the persistent actor will be stopped, since we can't assume that a consistent state would be recovered just by replaying all events, since events may have been deleted * additional recovery docs * improve log message
This commit is contained in:
parent
a5e94dd3ed
commit
ea84b4bfdd
13 changed files with 153 additions and 19 deletions
|
|
@ -59,6 +59,13 @@ object PersistenceDocSpec {
|
|||
}
|
||||
//#recovery-completed
|
||||
}
|
||||
|
||||
trait MyPersistentActor5 extends PersistentActor {
|
||||
//#recovery-no-snap
|
||||
override def recovery =
|
||||
Recovery(fromSnapshot = SnapshotSelectionCriteria.None)
|
||||
//#recovery-no-snap
|
||||
}
|
||||
}
|
||||
|
||||
object PersistenceId {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue