I have a number of persistent actors that write to disk files that may 
potentially be NFS files, so IO failure are possible. I was going to wrap 
the PersistentActors in BackoffSupervisors to deal with any IO errors, but 
I noticed this in the BackoffSupervisor source:

* '''***
* This supervisor should not be used with `Akka Persistence` child actors.
* `Akka Persistence` actors shutdown unconditionally on `persistFailure()`s 
rather
* than throw an exception on a failure like normal actors.
* [[#onStop]] should be used instead for cases where the child actor
* terminates itself as a failure signal instead of the normal behavior of 
throwing an exception.
* ***'''

That's not in the docs, it's just a source code comment - I'd have thought 
it was important anough a restriction to be in the scaladocs?

Also, if BackoffSupervisor shouldn't be used with PersistentActors, what is 
the correct way of dealing with IO failures in persistent actors?

--
Alan Burlison
--

-- 
>>>>>>>>>>      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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to