Skip to content

Commit 280450d

Browse files
committed
Use createTempDir in getOrCreateLocalRootDirs...
to automatically remove the directory on shutdown.
1 parent d641fbb commit 280450d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/util/Utils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ private[spark] object Utils extends Logging {
696696
try {
697697
val rootDir = new File(root)
698698
if (rootDir.exists || rootDir.mkdirs()) {
699-
val dir = createDirectory(root)
699+
val dir = createTempDir(root)
700700
chmod700(dir)
701701
Some(dir.getAbsolutePath)
702702
} else {

0 commit comments

Comments
 (0)