[ https://issues.apache.org/jira/browse/SPARK-42698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-42698: ------------------------------------ Assignee: (was: 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 > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org