Hi,

I think the AskTimeoutException is not related to being in a multi-jvm test
apart from maybe being slower. I suspect that the startup times might be
longer then you expect, and 1s timeout is just too short. I would increase
it to 3s.

-Endre


On Wed, Jun 18, 2014 at 4:32 PM, tigerfoot <[email protected]> wrote:

> Hello,
>
> I'm using sbt-multi-jvm for testing (very cool!) with scalatest.  It's
> working generally great, but sometimes I get the following error:
>
> [JVM-1] *** RUN ABORTED ***
> [JVM-1]   akka.pattern.AskTimeoutException: Ask timed out on
> [Actor[akka://test/user/IO-HTTP#-2027621091]] after [1000 ms]
> [JVM-1]   at
> akka.pattern.PromiseActorRef$$anonfun$1.apply$mcV$sp(AskSupport.scala:333)
> [JVM-1]   at akka.actor.Scheduler$$anon$7.run(Scheduler.scala:117)
> [JVM-1]   at
> scala.concurrent.Future$InternalCallbackExecutor$.unbatchedExecute(Future.scala:599)
> [JVM-1]   at
> scala.concurrent.BatchingExecutor$class.execute(BatchingExecutor.scala:109)
> [JVM-1]   at
> scala.concurrent.Future$InternalCallbackExecutor$.execute(Future.scala:597)
> [JVM-1]   at
> akka.actor.LightArrayRevolverScheduler$TaskHolder.executeTask(Scheduler.scala:467)
> [JVM-1]   at
> akka.actor.LightArrayRevolverScheduler$$anon$8.executeBucket$1(Scheduler.scala:419)
> [JVM-1]   at
> akka.actor.LightArrayRevolverScheduler$$anon$8.nextTick(Scheduler.scala:423)
> [JVM-1]   at
> akka.actor.LightArrayRevolverScheduler$$anon$8.run(Scheduler.scala:375)
> [JVM-1]   at java.lang.Thread.run(Thread.java:745)
>
> If I ctl-c and wait a minute and try again everything works.  It happens
> maybe 50% of the time.
>
> Any ideas what may be causing it?  My last test run before getting the
> errors are clean and (I think) I'm shutting down ActorSystems to clean up.
> What kinds of things should I be looking for?
>
> Thanks for any ideas.
> Greg
>
> --
> >>>>>>>>>> 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.
>



-- 
Akka Team
Typesafe - The software stack for applications that scale
Blog: letitcrash.com
Twitter: @akkateam

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