Repository: spark
Updated Branches:
  refs/heads/master 7d8e6a2e4 -> a777c65da


[SPARK-5970][core] Register directory created in getOrCreateLocalRootDirs for 
automatic deletion.

As documented in createDirectory, the result of createDirectory is not 
registered for automatic removal. Currently there are 4 directories left in 
`/tmp` after just running `pyspark`.

Author: Milan Straka <[email protected]>

Closes #4759 from foxik/remove-tmp-dirs and squashes the following commits:

280450d [Milan Straka] Use createTempDir in getOrCreateLocalRootDirs...


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

Branch: refs/heads/master
Commit: a777c65da9bc636e5cf5426e15a2e76d6b21b744
Parents: 7d8e6a2
Author: Milan Straka <[email protected]>
Authored: Wed Feb 25 21:33:34 2015 +0000
Committer: Sean Owen <[email protected]>
Committed: Wed Feb 25 21:33:34 2015 +0000

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


http://git-wip-us.apache.org/repos/asf/spark/blob/a777c65d/core/src/main/scala/org/apache/spark/util/Utils.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/util/Utils.scala 
b/core/src/main/scala/org/apache/spark/util/Utils.scala
index df21ed3..4803ff9 100644
--- a/core/src/main/scala/org/apache/spark/util/Utils.scala
+++ b/core/src/main/scala/org/apache/spark/util/Utils.scala
@@ -696,7 +696,7 @@ private[spark] object Utils extends Logging {
           try {
             val rootDir = new File(root)
             if (rootDir.exists || rootDir.mkdirs()) {
-              val dir = createDirectory(root)
+              val dir = createTempDir(root)
               chmod700(dir)
               Some(dir.getAbsolutePath)
             } else {


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

Reply via email to