Skip to content

Commit ed3f103

Browse files
committed
Revert "[SPARK-34674][CORE][K8S] Close SparkContext after the Main method has finished"
This reverts commit ab97db7.
1 parent ab97db7 commit ed3f103

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -952,12 +952,6 @@ private[spark] class SparkSubmit extends Logging {
952952
} catch {
953953
case t: Throwable =>
954954
throw findCause(t)
955-
} finally {
956-
try {
957-
SparkContext.getActive.foreach(_.stop())
958-
} catch {
959-
case e: Throwable => logError(s"Failed to close SparkContext: $e")
960-
}
961955
}
962956
}
963957

0 commit comments

Comments
 (0)