Repository: spark
Updated Branches:
  refs/heads/master 61487b308 -> 745c8c090


[SPARK-23708][CORE] Correct comment for function addShutDownHook in 
ShutdownHookManager

## What changes were proposed in this pull request?
Minor modification.Comment below is not right.
```
/**
   * 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)
  }
```

## How was this patch tested?

UT

Author: zhoukang <[email protected]>

Closes #20845 from caneGuy/zhoukang/fix-shutdowncomment.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/745c8c09
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/745c8c09
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/745c8c09

Branch: refs/heads/master
Commit: 745c8c0901ac522ba92c1356ca74bd0dd7701496
Parents: 61487b3
Author: zhoukang <[email protected]>
Authored: Mon Mar 19 13:31:21 2018 +0800
Committer: jerryshao <[email protected]>
Committed: Mon Mar 19 13:31:21 2018 +0800

----------------------------------------------------------------------
 .../src/main/scala/org/apache/spark/util/ShutdownHookManager.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/745c8c09/core/src/main/scala/org/apache/spark/util/ShutdownHookManager.scala
----------------------------------------------------------------------
diff --git 
a/core/src/main/scala/org/apache/spark/util/ShutdownHookManager.scala 
b/core/src/main/scala/org/apache/spark/util/ShutdownHookManager.scala
index 4001fac..b702838 100644
--- a/core/src/main/scala/org/apache/spark/util/ShutdownHookManager.scala
+++ b/core/src/main/scala/org/apache/spark/util/ShutdownHookManager.scala
@@ -143,7 +143,7 @@ private[spark] object ShutdownHookManager extends Logging {
   }
 
   /**
-   * Adds a shutdown hook with the given priority. Hooks with lower priority 
values run
+   * Adds a shutdown hook with the given priority. Hooks with higher priority 
values run
    * first.
    *
    * @param hook The code to run during shutdown.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to