The reduced the flexibility of the failure handling was one of the important changes in Akka Persistence 2.4.0. Persistent actors are now unconditionally stopped when there is a persistence failure. The reason is that otherwise the actor and the database might be in different states and just ignoring that fact would result in subtle bugs in applications. A timeout does not mean that the event was not stored. See http://doc.akka.io/docs/akka/2.4.0/scala/persistence.html#Failures
You can use the new BackoffSupervisor (or implement whatever retry logic you like in the parent) to start the actor again. It might be possible for a journal to implementation retry logic, but that is very specific to the backend data store so it must be done on the journal level. Regards, Patrik On Mon, Oct 19, 2015 at 12:05 PM, Brice Figureau <[email protected]> wrote: > Hi, > > I've encountered an issue where due to a timeout in Cassandra, some of > my persistent actors couldn't recover and were forcibly stopped. > > I would have liked to retry one more time for instance, or keep the > actor running (because the actor could still serve even though without > the recovered state), but it doesn't seem possible. > > I'm surprised that this can't be implemented in akka 2.4, and that it > doesn't use the supervisor hierarchy to make the decision about what to > do. > > Could that be planned for a future version? > -- > Brice Figureau <[email protected]> > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: > https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Patrik Nordwall Typesafe <http://typesafe.com/> - Reactive apps on the JVM Twitter: @patriknw -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
