[ https://issues.apache.org/jira/browse/SPARK-23708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16401673#comment-16401673 ]
Apache Spark commented on SPARK-23708: -------------------------------------- User 'caneGuy' has created a pull request for this issue: 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 > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org