Skip to content

Commit 4c6b561

Browse files
committed
[SPARK-54774][CORE] k8s submit failed should keep same exit code with user code
1 parent 1aa4b15 commit 4c6b561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ private[spark] class SparkSubmit extends Logging {
10471047
!isSqlShell(args.mainClass) && !isThriftServer(args.mainClass) &&
10481048
!isConnectServer(args.mainClass)) {
10491049
try {
1050-
SparkContext.getActive.foreach(_.stop())
1050+
SparkContext.getActive.foreach(_.stop(exitCode))
10511051
} catch {
10521052
case e: Throwable => logError("Failed to close SparkContext", e)
10531053
}

0 commit comments

Comments
 (0)