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

angerszhu updated SPARK-42698:
------------------------------
        Parent: SPARK-36623
    Issue Type: Sub-task  (was: Bug)

> Client mode submit task client should keep same exitcode with AM
> ----------------------------------------------------------------
>
>                 Key: SPARK-42698
>                 URL: https://issues.apache.org/jira/browse/SPARK-42698
>             Project: Spark
>          Issue Type: Sub-task
>          Components: YARN
>    Affects Versions: 3.5.0
>            Reporter: angerszhu
>            Priority: Major
>
> ```
>     try {
>       app.start(childArgs.toArray, sparkConf)
>     } catch {
>       case t: Throwable =>
>         throw findCause(t)
>     } finally {
>       if (!isShell(args.primaryResource) && !isSqlShell(args.mainClass) &&
>         !isThriftServer(args.mainClass)) {
>         try {
>           SparkContext.getActive.foreach(_.stop())
>         } catch {
>           case e: Throwable => logError(s"Failed to close SparkContext: $e")
>         }
>       }
>     }
>   }
> ```



--
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