[
https://issues.apache.org/jira/browse/SPARK-42698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17697364#comment-17697364
]
Apache Spark commented on SPARK-42698:
--------------------------------------
User 'AngersZhuuuu' has created a pull request for this issue:
https://github.com/apache/spark/pull/40314
> 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]