Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1367

AskPattern.ask doesn't respond within the timeout

$
0
0

@sarada wrote:

Hi,
First of all, I’m just beginning to use Akka, what I’m trying to do is distribute a process that used to run in a single server. the process that I distribute averaging about 50ms, but for some, it takes around 1500ms.
since this is a req-response pattern I’m using “AskPattern.ask” with 25000ms to get a future, but when this is running it gives following exception
Caused by: java.util.concurrent.TimeoutException: Ask timed out on [Actor[akka://test-cluster/user/executor_router#-1035294220]] after [25000 ms]. Message of type [it.codegen.cluster.akka.DistributedExecutorEvent]. A typical reason for AskTimeoutException is that the recipient actor didn’t send a reply.
at akka.actor.typed.scaladsl.AskPattern$.$anonfun$onTimeout$1(AskPattern.scala:120)
at akka.pattern.PromiseActorRef$.$anonfun$apply$1(AskSupport.scala:669)
at akka.actor.Scheduler$$anon$7.run(Scheduler.scala:476)
at scala.concurrent.Future$InternalCallbackExecutor$.execute(Future.scala:680)
at akka.actor.LightArrayRevolverScheduler$TaskHolder.executeTask(LightArrayRevolverScheduler.scala:355)
at akka.actor.LightArrayRevolverScheduler$$anon$3.executeBucket$1(LightArrayRevolverScheduler.scala:306)
at akka.actor.LightArrayRevolverScheduler$$anon$3.nextTick(LightArrayRevolverScheduler.scala:310)
at akka.actor.LightArrayRevolverScheduler$$anon$3.run(LightArrayRevolverScheduler.scala:262)

but none of my process running in any node is not taking more than 1500ms, which can be the cause for this, what am I doing wrong?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 1367

Trending Articles