Hi Eduardo,

threads created by other libraries are not managed by Akka, you will have to 
shut down that external DB interface yourself. The best place to do this would 
be in the actor’s postStop() hook (I mean that actor which also creates and 
uses that DB).

Regards,

Roland

> 14 mar 2016 kl. 01:23 skrev Eduardo Fernandes <edu...@gmail.com>:
> 
> Hum... it's look like an actor which uses an asynchronous DB persistor from 
> an external library sometimes launches a thread. When the thread is running 
> the shutdown() does nothing and the awaitTermination() doesn't block. If I 
> stop the thread (I have to  say that in a not very documented way) the 
> shutdown stops all Akka threads and the system appears to be released 
> correctly (nevertheless in a single node configuration I don't see the 
> typical shutdowing messages in the log).
> 
> Doing this the problem is solved. Thanks for your comments.
> 
> I still don't understand why the shutdown()/awaitTermination()  have no 
> effect when those external threads are running. Probably when we migrate to 
> 2.4 the problem will just vanish.
> 
> Thanks again!
> 
> 
> El viernes, 11 de marzo de 2016, 13:45:59 (UTC+1), Eduardo Fernandes escribió:
> Me too :(
> 
> I'l prepare a minimum example. Typically when I do this the problem get clear 
> and I could fix my test code :)
> 
> Regards.
>  
> 
> 
> -- 
> >>>>>>>>>> Read the docs: http://akka.io/docs/ <http://akka.io/docs/>
> >>>>>>>>>> Check the FAQ: 
> >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html 
> >>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html>
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user 
> >>>>>>>>>> <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+unsubscr...@googlegroups.com 
> <mailto:akka-user+unsubscr...@googlegroups.com>.
> To post to this group, send email to akka-user@googlegroups.com 
> <mailto:akka-user@googlegroups.com>.
> Visit this group at https://groups.google.com/group/akka-user 
> <https://groups.google.com/group/akka-user>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.



Dr. Roland Kuhn
Akka Tech Lead
Typesafe <http://typesafe.com/> – Reactive apps on the JVM.
twitter: @rolandkuhn
 <http://twitter.com/#!/rolandkuhn>

-- 
>>>>>>>>>>      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+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
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