Too many concurrent requests for reactivemongo?

72 views
Skip to first unread message

mullex

unread,
May 8, 2014, 6:49:43 AM5/8/14
to reacti...@googlegroups.com

I was running concurrrent test against play framework 2.0 with reactivemongo. When i increased the number of concurrent requests, the following exception was thrown and it recovered in a few seconds.

Does this error mean there were too many concurrent requests reactivemongo couldnt handle? Or is it caused by a flaw in the code?

    from reactivemongo.api.Failover in play-akka.actor.default-dispatcher-24
    Got an error, no more attempts to do. Completing with a failure...
    reactivemongo.core.actors.Exceptions$PrimaryUnavailableException$: MongoError['No primary node is available!']
        at reactivemongo.core.actors.Exceptions$PrimaryUnavailableException$.<clinit>(actors.scala) ~[org.reactivemongo.reactivemongo_2.10-0.10.0.jar:0.10.0]
        at reactivemongo.core.actors.MongoDBSystem$$anonfun$pickChannel$4.apply(actors.scala:508) ~[org.reactivemongo.reactivemongo_2.10-0.10.0.jar:0.10.0]
        at reactivemongo.core.actors.MongoDBSystem$$anonfun$pickChannel$4.apply(actors.scala:508) ~[org.reactivemongo.reactivemongo_2.10-0.10.0.jar:0.10.0]
        at scala.Option.getOrElse(Option.scala:120) ~[org.scala-lang.scala-library-2.10.2.jar:na]
        at reactivemongo.core.actors.MongoDBSystem.pickChannel(actors.scala:508) ~[org.reactivemongo.reactivemongo_2.10-0.10.0.jar:0.10.0]
        at reactivemongo.core.actors.MongoDBSystem$$anonfun$receive$1.applyOrElse(actors.scala:252) ~[org.reactivemongo.reactivemongo_2.10-0.10.0.jar:0.10.0]
        at akka.actor.ActorCell.receiveMessage(ActorCell.scala:498) ~[com.typesafe.akka.akka-actor_2.10-2.2.1.jar:2.2.1]
        at akka.actor.ActorCell.invoke(ActorCell.scala:456) ~[com.typesafe.akka.akka-actor_2.10-2.2.1.jar:2.2.1]
        at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:237) ~[com.typesafe.akka.akka-actor_2.10-2.2.1.jar:2.2.1]
        at akka.dispatch.Mailbox.run(Mailbox.scala:219) ~[com.typesafe.akka.akka-actor_2.10-2.2.1.jar:2.2.1]
        at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386) [com.typesafe.akka.akka-actor_2.10-2.2.1.jar:2.2.1]
        at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) [org.scala-lang.scala-library-2.10.2.jar:na]
        at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) [org.scala-lang.scala-library-2.10.2.jar:na]
        at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) [org.scala-lang.scala-library-2.10.2.jar:na]
        at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) [org.scala-lang.scala-library-2.10.2.jar:na]

Reply all
Reply to author
Forward
0 new messages