Skip to content

Commit

Permalink
Fix for SparkContext stop behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
rekhajoshm committed Jun 26, 2015
1 parent 9193a0c commit a5a7d7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/scala/org/apache/spark/SparkEnv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ class SparkEnv (
outputCommitCoordinator.stop()
rpcEnv.shutdown()
} catch {
case NonFatal(e) =>
case e: ServerStateException =>
logInfo("Exception while SparkEnv stop", e)
case NonFatal(e) =>
throw e;
}

// Unfortunately Akka's awaitTermination doesn't actually wait for the Netty server to shut
Expand Down

0 comments on commit a5a7d7f

Please sign in to comment.