Re: [akka-user] awaitTermination not working?

2016-03-14 Thread Eduardo Fernandes
Hi Roland.

Thanks for your answer.

Sure, the problem was that I was not aware about that threads. I'm afraid
that I have to shutdown such threads at system shutdown because the library
shares threads among several actor instances. Anyway, problem solved!

Thanks again for your time very helpful suggestions.


On Mon, Mar 14, 2016 at 8:12 AM, Roland Kuhn  wrote:

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

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


Re: [akka-user] awaitTermination not working?

2016-03-14 Thread Roland Kuhn
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 :
> 
> 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/ 
> >> 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 
> .



Dr. Roland Kuhn
Akka Tech Lead
Typesafe  – Reactive apps on the JVM.
twitter: @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.


Re: [akka-user] awaitTermination not working?

2016-03-13 Thread Eduardo Fernandes
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/
>>  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.


Re: [akka-user] awaitTermination not working?

2016-03-11 Thread Eduardo Fernandes
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.


On Fri, Mar 11, 2016 at 1:43 PM, Patrik Nordwall 
wrote:

> Please share minimized code of the problem. We use this all over the place
> so I'm pretty sure your code is not correct.
>
> On Fri, Mar 11, 2016 at 1:39 PM, Eduardo Fernandes 
> wrote:
>
>> Hi. Thanks Patrik.
>>
>> I am using shutdown() and then awaitTermination(). Both don't block and
>> return immediately. My previous test start two nodes and the the 
>> awaitTermination()
>> blocks as expected and everything works fine. The only test which fails is
>> the one which works in single-node mode.
>>
>> I've tried the TestKit and the behavior is exactly the same.
>>
>> In other words, if I start a new node in the same test the function
>> blocks as expected.
>>
>> Thanks again.
>>
>>
>> On Fri, Mar 11, 2016 at 1:33 PM, Patrik Nordwall <
>> patrik.nordw...@gmail.com> wrote:
>>
>>> You must use shutdown followed by awaitTermination.
>>> (note that awaitTermination is replaced by something else in 2.4.x, see
>>> deprecation)
>>>
>>> In TestKit there is a helper method to shutdown the actor system, await
>>> and verify.
>>>
>>> On Fri, Mar 11, 2016 at 1:22 PM, Eduardo Fernandes 
>>> wrote:
>>>
 Hi.

 Hum... I think that is not the case. In fact the methods shutdown() and 
 awaitTermination()
 simply don't block at all and the next test says that the port 12551 is
 already bound. If my previous test starts two nodes everything works find
 and the awaitTermination() method waits for the node shutdown.

 The problem only appears when my test is single node.

 Thanks for your time.

 On Fri, Mar 11, 2016 at 1:14 PM, Akka Team 
 wrote:

> Hi Eduardo,
>
> If you have an actor that is blocking indefinitely, the actor system
> termination will never complete, could this be the case? If it is you
> should be able to see that by getting a thread dump from the JVM and see
> one of your actor blocking one of the dispatcher threads.
>
> --
> Johan Andrén
> Akka Team, Lightbend Inc.
>
> --
> >> 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 a topic in the
> Google Groups "Akka User List" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/akka-user/tkCnKcjj1tI/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>

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

>>>
>>>
>>>
>>> --
>>>
>>> Patrik Nordwall
>>> Akka Tech Lead
>>> Lightbend  -  Reactive apps on the JVM
>>> Twitter: @patriknw
>>>
>>> [image: Lightbend] 
>>>
>>> --
>>> >> 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 a topic in the
>>> Google Groups "Akka User List" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/akka-user/tkCnKcjj1tI/unsubscribe.
>>> To unsubscribe from this group and all its topics, 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.
>>>
>>
>> --
>> >> Read the docs: http://akka.io/docs/
>> >> Check the FAQ:
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>> >> Search the archives: 

Re: [akka-user] awaitTermination not working?

2016-03-11 Thread Patrik Nordwall
Please share minimized code of the problem. We use this all over the place
so I'm pretty sure your code is not correct.

On Fri, Mar 11, 2016 at 1:39 PM, Eduardo Fernandes  wrote:

> Hi. Thanks Patrik.
>
> I am using shutdown() and then awaitTermination(). Both don't block and
> return immediately. My previous test start two nodes and the the 
> awaitTermination()
> blocks as expected and everything works fine. The only test which fails is
> the one which works in single-node mode.
>
> I've tried the TestKit and the behavior is exactly the same.
>
> In other words, if I start a new node in the same test the function blocks
> as expected.
>
> Thanks again.
>
>
> On Fri, Mar 11, 2016 at 1:33 PM, Patrik Nordwall <
> patrik.nordw...@gmail.com> wrote:
>
>> You must use shutdown followed by awaitTermination.
>> (note that awaitTermination is replaced by something else in 2.4.x, see
>> deprecation)
>>
>> In TestKit there is a helper method to shutdown the actor system, await
>> and verify.
>>
>> On Fri, Mar 11, 2016 at 1:22 PM, Eduardo Fernandes 
>> wrote:
>>
>>> Hi.
>>>
>>> Hum... I think that is not the case. In fact the methods shutdown() and 
>>> awaitTermination()
>>> simply don't block at all and the next test says that the port 12551 is
>>> already bound. If my previous test starts two nodes everything works find
>>> and the awaitTermination() method waits for the node shutdown.
>>>
>>> The problem only appears when my test is single node.
>>>
>>> Thanks for your time.
>>>
>>> On Fri, Mar 11, 2016 at 1:14 PM, Akka Team 
>>> wrote:
>>>
 Hi Eduardo,

 If you have an actor that is blocking indefinitely, the actor system
 termination will never complete, could this be the case? If it is you
 should be able to see that by getting a thread dump from the JVM and see
 one of your actor blocking one of the dispatcher threads.

 --
 Johan Andrén
 Akka Team, Lightbend Inc.

 --
 >> 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 a topic in the
 Google Groups "Akka User List" group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/akka-user/tkCnKcjj1tI/unsubscribe.
 To unsubscribe from this group and all its topics, 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.

>>>
>>> --
>>> >> 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.
>>>
>>
>>
>>
>> --
>>
>> Patrik Nordwall
>> Akka Tech Lead
>> Lightbend  -  Reactive apps on the JVM
>> Twitter: @patriknw
>>
>> [image: Lightbend] 
>>
>> --
>> >> 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 a topic in the
>> Google Groups "Akka User List" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/akka-user/tkCnKcjj1tI/unsubscribe.
>> To unsubscribe from this group and all its topics, 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.
>>
>
> --
> >> 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 

Re: [akka-user] awaitTermination not working?

2016-03-11 Thread Eduardo Fernandes
Hi. Thanks Patrik.

I am using shutdown() and then awaitTermination(). Both don't block and
return immediately. My previous test start two nodes and the the
awaitTermination()
blocks as expected and everything works fine. The only test which fails is
the one which works in single-node mode.

I've tried the TestKit and the behavior is exactly the same.

In other words, if I start a new node in the same test the function blocks
as expected.

Thanks again.


On Fri, Mar 11, 2016 at 1:33 PM, Patrik Nordwall 
wrote:

> You must use shutdown followed by awaitTermination.
> (note that awaitTermination is replaced by something else in 2.4.x, see
> deprecation)
>
> In TestKit there is a helper method to shutdown the actor system, await
> and verify.
>
> On Fri, Mar 11, 2016 at 1:22 PM, Eduardo Fernandes 
> wrote:
>
>> Hi.
>>
>> Hum... I think that is not the case. In fact the methods shutdown() and 
>> awaitTermination()
>> simply don't block at all and the next test says that the port 12551 is
>> already bound. If my previous test starts two nodes everything works find
>> and the awaitTermination() method waits for the node shutdown.
>>
>> The problem only appears when my test is single node.
>>
>> Thanks for your time.
>>
>> On Fri, Mar 11, 2016 at 1:14 PM, Akka Team 
>> wrote:
>>
>>> Hi Eduardo,
>>>
>>> If you have an actor that is blocking indefinitely, the actor system
>>> termination will never complete, could this be the case? If it is you
>>> should be able to see that by getting a thread dump from the JVM and see
>>> one of your actor blocking one of the dispatcher threads.
>>>
>>> --
>>> Johan Andrén
>>> Akka Team, Lightbend Inc.
>>>
>>> --
>>> >> 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 a topic in the
>>> Google Groups "Akka User List" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/akka-user/tkCnKcjj1tI/unsubscribe.
>>> To unsubscribe from this group and all its topics, 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.
>>>
>>
>> --
>> >> 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.
>>
>
>
>
> --
>
> Patrik Nordwall
> Akka Tech Lead
> Lightbend  -  Reactive apps on the JVM
> Twitter: @patriknw
>
> [image: Lightbend] 
>
> --
> >> 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 a topic in the
> Google Groups "Akka User List" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/akka-user/tkCnKcjj1tI/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>

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


Re: [akka-user] awaitTermination not working?

2016-03-11 Thread Patrik Nordwall
You must use shutdown followed by awaitTermination.
(note that awaitTermination is replaced by something else in 2.4.x, see
deprecation)

In TestKit there is a helper method to shutdown the actor system, await and
verify.

On Fri, Mar 11, 2016 at 1:22 PM, Eduardo Fernandes  wrote:

> Hi.
>
> Hum... I think that is not the case. In fact the methods shutdown() and 
> awaitTermination()
> simply don't block at all and the next test says that the port 12551 is
> already bound. If my previous test starts two nodes everything works find
> and the awaitTermination() method waits for the node shutdown.
>
> The problem only appears when my test is single node.
>
> Thanks for your time.
>
> On Fri, Mar 11, 2016 at 1:14 PM, Akka Team 
> wrote:
>
>> Hi Eduardo,
>>
>> If you have an actor that is blocking indefinitely, the actor system
>> termination will never complete, could this be the case? If it is you
>> should be able to see that by getting a thread dump from the JVM and see
>> one of your actor blocking one of the dispatcher threads.
>>
>> --
>> Johan Andrén
>> Akka Team, Lightbend Inc.
>>
>> --
>> >> 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 a topic in the
>> Google Groups "Akka User List" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/akka-user/tkCnKcjj1tI/unsubscribe.
>> To unsubscribe from this group and all its topics, 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.
>>
>
> --
> >> 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.
>



-- 

Patrik Nordwall
Akka Tech Lead
Lightbend  -  Reactive apps on the JVM
Twitter: @patriknw

[image: Lightbend] 

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


Re: [akka-user] awaitTermination not working?

2016-03-11 Thread Eduardo Fernandes
Hi.

Hum... I think that is not the case. In fact the methods shutdown()
and awaitTermination()
simply don't block at all and the next test says that the port 12551 is
already bound. If my previous test starts two nodes everything works find
and the awaitTermination() method waits for the node shutdown.

The problem only appears when my test is single node.

Thanks for your time.

On Fri, Mar 11, 2016 at 1:14 PM, Akka Team  wrote:

> Hi Eduardo,
>
> If you have an actor that is blocking indefinitely, the actor system
> termination will never complete, could this be the case? If it is you
> should be able to see that by getting a thread dump from the JVM and see
> one of your actor blocking one of the dispatcher threads.
>
> --
> Johan Andrén
> Akka Team, Lightbend Inc.
>
> --
> >> 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 a topic in the
> Google Groups "Akka User List" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/akka-user/tkCnKcjj1tI/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>

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


Re: [akka-user] awaitTermination not working?

2016-03-11 Thread Akka Team
Hi Eduardo,

If you have an actor that is blocking indefinitely, the actor system
termination will never complete, could this be the case? If it is you
should be able to see that by getting a thread dump from the JVM and see
one of your actor blocking one of the dispatcher threads.

--
Johan Andrén
Akka Team, Lightbend Inc.

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


[akka-user] awaitTermination not working?

2016-03-09 Thread Eduardo Fernandes
Hi group! Thanks for your time in advance.

I'm using Java version 2.3.13. In my JUnit tests and when I'm testing in 
single node the awaitTermination function after the traditional shutdown() 
is not awaiting for the actor system termination. In fact the actorsystem 
is not event starting to shutdown.

I found this 
and
 
this 

 but 
I didn't found a clear solution to my problem. For other tests in 
multi-node environment the awaiting function is working fine.

Any idea?

Many thanks again for your help.

/Eduardo


https://groups.google.com/forum/#!searchin/akka-user/awaitTermination/akka-user/kAbrnq9mTsM/YefmJmOw7bUJ

https://groups.google.com/forum/#!searchin/akka-user/awaitTermination/akka-user/9YCfjf2iuqc/edTwRBZJgUEJ

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