Shut down an actor system in multi-jvm tests

26 views
Skip to first unread message

alex.f....@gmail.com

unread,
Dec 25, 2015, 12:08:38 PM12/25/15
to Akka User List
Hi hAkkers,

I've been trying to figure out how to gracefully shutdown an actor system (or a jvm) in multi-jvm tests. The most naive way, which is to run system.terminate gives some error about Barrier timeout.  I also tried TestConductor(system).shutdown(first), but I got an error about TestConductor hasn't started. The akka docs page for multi-node testing doesn't say much about TestConductor. It would be great if someone could point me to the right direction.

Thanks!
Alex

Patrik Nordwall

unread,
Dec 26, 2015, 10:11:47 AM12/26/15
to Akka User List
It must be done from the first node, where the concuctor runs. See akka source of multi-jvm tests for inspiration.
--
>>>>>>>>>> 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 akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Alex Reisberg

unread,
Dec 26, 2015, 11:26:03 PM12/26/15
to akka...@googlegroups.com
That works. Thanks!  Also, I should've done testConductor (instead of TestConductor).

You received this message because you are subscribed to a topic in the Google Groups "Akka User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/9EvDxbH9lGY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages