You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "zhoukang (JIRA)" <ji...@apache.org> on 2018/03/16 09:37:00 UTC
[jira] [Updated] (SPARK-23708) Comment of
ShutdownHookManager.addShutdownHook is error
[ https://issues.apache.org/jira/browse/SPARK-23708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
zhoukang updated SPARK-23708:
-----------------------------
Issue Type: Bug (was: Improvement)
> Comment of ShutdownHookManager.addShutdownHook is error
> -------------------------------------------------------
>
> Key: SPARK-23708
> URL: https://issues.apache.org/jira/browse/SPARK-23708
> Project: Spark
> Issue Type: Bug
> Components: Spark Core
> Affects Versions: 2.3.0
> Reporter: zhoukang
> Priority: Minor
>
> 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