Hello Lawrence,
Because of the processor’s inner workings (how it interacts with the
Journal) it does not make sense to test it using the *synchronous* test
utilities (such as TestActorRef).
Please do not use TestActorRef with Akka-Persistence - use the plain
TestKit and it’s probes and other utils.

// We had such issue reported, and marked as won’t fix
https://github.com/akka/akka/issues/15293
​


On Wed, May 28, 2014 at 4:20 PM, Lawrence Wagerfield <
[email protected]> wrote:

> Using TestActorRef on implementations of Processor (and
> EventsourcedProcessor) appears to introduce a deadlock at the point of
> calling into the snapshot store actor.
>
> The result is an actor-under-test that never completes recovery.
>
> I have worked-around this issue by providing
> .withDispatcher(Dispatchers.DefaultDispatcherId) on the Props object I
> construct the TestActorRef with.
>
> Should I raise this as an issue? Currently using Akka 2.3.3.
>
> --
> >>>>>>>>>> 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.
>



-- 
Cheers,
Konrad 'ktoso' Malawski
hAkker - Typesafe, Inc

<http://scaladays.org>

-- 
>>>>>>>>>>      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.

Reply via email to