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

[jira] [Updated] (SPARK-38270) SQL CLI AM should keep same exitcode with client

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

angerszhu updated SPARK-38270:
------------------------------
    Description: 
Currently for SQL CLI, we all use  shutdown hook to stop SC

{code:java}
    // Clean up after we exit
    ShutdownHookManager.addShutdownHook { () => SparkSQLEnv.stop() }

{code}
This cause Yarn AM always success even client exit with code not 0.


> SQL CLI AM should keep same exitcode with client
> ------------------------------------------------
>
>                 Key: SPARK-38270
>                 URL: https://issues.apache.org/jira/browse/SPARK-38270
>             Project: Spark
>          Issue Type: Task
>          Components: SQL
>    Affects Versions: 3.2.1
>            Reporter: angerszhu
>            Priority: Major
>
> Currently for SQL CLI, we all use  shutdown hook to stop SC
> {code:java}
>     // Clean up after we exit
>     ShutdownHookManager.addShutdownHook { () => SparkSQLEnv.stop() }
> {code}
> This cause Yarn AM always success even client exit with code not 0.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org