At the end of each test or test suite, you stop the actor system that was
running, usually using TestKit.shutdownActorSystem, this method takes a
timeout, if it hasn't manage to terminate the actor system before this
timeout the call fail with the error message you describe.

All actors are stopped when before the ActorSystem shutdown completes. If
there is an actor blocking or simply not completing the processing of a
message (let's say it does a while(true) { ... } for example, this will
hinder the shutdown. You can figure out exactly what in your code is
blocking/hindering actor shutdown by taking a thread dump, you should be
able to see your own logic in one of the stack traces hinting you towards
what is wrong.

--
Johan
Akka Team

On Thu, Jul 13, 2017 at 4:59 PM, usermda <[email protected]> wrote:

> Hello
>
> I started getting this warning with a test failure (intermittent) that I
> have no clue what it means. Any help on what the warning indicates will be
> helpful. Here is the warning
> I need some help understanding this warning
>
>     [WARN] [07/13/2017 09:35:53.465] [main] [ActorSystem(default)] Failed
> to stop [default] within [10 seconds]
>     -> / LocalActorRefProvider$$anon$1 class 
> akka.actor.LocalActorRefProvider$Guardian
> status=0 1 children
>        ⌊-> system LocalActorRef class 
> akka.actor.LocalActorRefProvider$SystemGuardian
> status=2 Terminating(UserRequest)
>            |    toDie: Actor[akka://default/system/
> deadLetterListener#-47810243]
>            |           Actor[akka://default/system/testActor1#-1858382714]
>            |           Actor[akka://default/system/testActor2#-1013315176]
>            |           Actor[akka://default/system/testActor3#-639523170]
>            ⌊-> deadLetterListener RepointableActorRef null status=1
> terminated
>            ⌊-> testActor1 RepointableActorRef null status=1 terminated
>            ⌊-> testActor2 RepointableActorRef null status=1 terminated
>            ⌊-> testActor3 RepointableActorRef class akka.testkit.TestActor
> status=0 Terminating(UserRequest)
>            |   |    toDie: TestActor[akka://default/
> system/testActor3/1ae159bf-59a1-4899-884d-105705d1470b]
>            |   ⌊-> 1ae159bf-59a1-4899-884d-105705d1470b TestActorRef
> class myParentActor status=0 1 children
>            |       ⌊-> $a LocalActorRef class myFirstChild status=2 no
> children
>            ⌊-> testActor4 RepointableActorRef class akka.testkit.TestActor
> status=0 no children
>            ⌊-> testActor5 RepointableActorRef class akka.testkit.TestActor
> status=0 1 children
>            |   ⌊-> dc2a094f-a12e-4221-8875-e400065b522f TestActorRef
> class MyParentActor status=0 no children
>            ⌊-> testActor6 RepointableActorRef class akka.testkit.TestActor
> status=0 no children
>            ⌊-> testActor7 RepointableActorRef class akka.testkit.TestActor
> status=0 1 children
>            |   ⌊-> 643d6fc5-bcd6-4c27-9da6-3f04c59bccfd TestActorRef
> class MyParentActor status=0 no children
>            ⌊-> testActor8 RepointableActorRef class akka.testkit.TestActor
> status=0 no children
>
>
> I have a test that is expecting a certain message after the myParentActor
> has completed a task that is timing out. I am trying to figure out if they
> are related
>
>
> I am not sure what more info to provide
>
> --
> >>>>>>>>>> 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.

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