zhoukang created SPARK-23708:
--------------------------------

             Summary: 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


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