[ 
https://issues.apache.org/jira/browse/SPARK-54774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cheng Pan resolved SPARK-54774.
-------------------------------
    Fix Version/s: 4.2.0
       Resolution: Fixed

Issue resolved by pull request 53539
[https://github.com/apache/spark/pull/53539]

> k8s submit failed should keep same exit code with user code
> -----------------------------------------------------------
>
>                 Key: SPARK-54774
>                 URL: https://issues.apache.org/jira/browse/SPARK-54774
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Spark Core, Spark Docker
>    Affects Versions: 4.1.0
>            Reporter: angerszhu
>            Assignee: angerszhu
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.2.0
>
>
> {code:java}
> if (SparkMasterRegex.isK8s(args.master) && !isShell(args.primaryResource) &&
>     !isSqlShell(args.mainClass) && !isThriftServer(args.mainClass) &&
>     !isConnectServer(args.mainClass)) {
>   try {
>     SparkContext.getActive.foreach(_.stop())
>   } catch {
>     case e: Throwable => logError("Failed to close SparkContext", e)
>   }
> } {code}
>  here should pass exit code here.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to