Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WritePendingException when connecting two receivers to the testbed #6

Open
dragos opened this issue Jun 17, 2015 · 4 comments
Open

Comments

@dragos
Copy link
Contributor

dragos commented Jun 17, 2015

[ERROR] [06/17/2015 17:34:57.709] [application-akka.actor.default-dispatcher-15] [akka://application/user/serverManager/$c] null
java.nio.channels.WritePendingException
    at sun.nio.ch.AsynchronousSocketChannelImpl.write(AsynchronousSocketChannelImpl.java:351)
    at sun.nio.ch.AsynchronousSocketChannelImpl.write(AsynchronousSocketChannelImpl.java:386)
    at com.typesafe.spark.testbed.ConnectionManagerActor$$anonfun$receive$1.applyOrElse(DataGeneratorActor.scala:180)
    at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
    at com.typesafe.spark.testbed.ConnectionManagerActor.aroundReceive(DataGeneratorActor.scala:170)
    at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
    at akka.actor.ActorCell.invoke(ActorCell.scala:487)
    at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
    at akka.dispatch.Mailbox.run(Mailbox.scala:220)
    at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
    at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
    at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
    at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
@dragos
Copy link
Contributor Author

dragos commented Jun 17, 2015

Hmm, it seems to be unrelated, the exception happens with only one stream as well. I restarted the testbed and then it worked with two receivers as well...

@huitseeker
Copy link
Contributor

Could you re-test with adding --conf spark.executor.memory=8G (or something massive) on the recipient side ?
Also, could you provide the contents of your testplan ?

@dragos
Copy link
Contributor Author

dragos commented Jun 18, 2015

The exception happens on the testbed application, not the Spark client.

@huitseeker
Copy link
Contributor

Yes. Nonetheless, having a spark client with a massive amount of memory means congestion happens later, thus TCP buffer overflow happens later, thus write errors are delayed.

skyluc pushed a commit that referenced this issue Sep 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants