You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Cheng Pan (Jira)" <ji...@apache.org> on 2026/04/10 02:24:00 UTC

[jira] [Assigned] (SPARK-54774) k8s submit failed should keep same exit code with user code

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

Cheng Pan reassigned SPARK-54774:
---------------------------------

    Assignee: angerszhu

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