Hi Alan,
I think the sample in the doc section referred to already uses the right
factory method and describes why, but please PR the docs with something
that makes it more clear if you want!
(http://doc.akka.io/docs/akka/current/scala/persistence.html#Failures)
--
Johan
Akka Team
On Wed, Mar
On 08/03/17 15:07, Akka Team wrote:
What it says is, do not use this factory method for persistent actors but
instead the Backoff.onStop factory method, not that the back off supervisor
cannot be used with persistent actors.
Ahah, that makes sense - thanks for the clarification. Perhaps the
Hi Alan,
That is most certainly in the docs and not only a source comment:
On 08/03/17 14:45, Richard Rodseth wrote:
I think they are referring to child actors. i.e. it's OK for actor A to
have a backoff supervisor (A can be persistent or not), but if it has a
child which is a persistent actor then the caveats apply.
Hmm, perhaps - but it doesn't read that way to
I think they are referring to child actors. i.e. it's OK for actor A to
have a backoff supervisor (A can be persistent or not), but if it has a
child which is a persistent actor then the caveats apply.
On Wed, Mar 8, 2017 at 6:09 AM, Alan Burlison
wrote:
> On 08/03/17
On 08/03/17 14:03, Alan Burlison wrote:
That's not in the docs, it's just a source code comment - I'd have thought
it was important enough 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
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