You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2023/03/07 11:04:00 UTC

[jira] [Assigned] (SPARK-42698) Client mode submit task client should keep same exitcode with AM

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

Apache Spark reassigned SPARK-42698:
------------------------------------

    Assignee: Apache Spark

> 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
>            Assignee: Apache Spark
>            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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org