spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saisai Shao (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-23708) Comment of ShutdownHookManager.addShutdownHook is error
Date Mon, 19 Mar 2018 05:34:00 GMT

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


Mime
View raw message