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

Saisai Shao resolved SPARK-23708.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4.0

Issue resolved by pull request 20845
[https://github.com/apache/spark/pull/20845]

> Comment of ShutdownHookManager.addShutdownHook is error
> -------------------------------------------------------
>
>                 Key: SPARK-23708
>                 URL: https://issues.apache.org/jira/browse/SPARK-23708
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 2.3.0
>            Reporter: zhoukang
>            Assignee: zhoukang
>            Priority: Minor
>             Fix For: 2.4.0
>
>
> Comment below is not right!
> {code:java}
> /**
>    * Adds a shutdown hook with the given priority. Hooks with lower priority 
> values run
>    * first.
>    *
>    * @param hook The code to run during shutdown.
>    * @return A handle that can be used to unregister the shutdown hook.
>    */
>   def addShutdownHook(priority: Int)(hook: () => Unit): AnyRef = {
>     shutdownHooks.add(priority, hook)
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to