Skip to content
Snippets Groups Projects
Commit 9199775d authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Wait for Akka to really shut down in SparkEnv.stop()

parent d5bdd123
No related branches found
No related tags found
No related merge requests found
package spark
import akka.actor.ActorSystem
import akka.actor.ActorSystemImpl
import akka.remote.RemoteActorRefProvider
import spark.broadcast.BroadcastManager
import spark.storage.BlockManager
......@@ -39,6 +41,8 @@ class SparkEnv (
blockManager.master.stop()
actorSystem.shutdown()
actorSystem.awaitTermination()
// Akka's awaitTermination doesn't actually wait until the port is unbound, so sleep a bit
Thread.sleep(100)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment