Skip to content
Snippets Groups Projects
Commit c847dd3d authored by Charles Reiss's avatar Charles Reiss
Browse files

Don't accept generated temp directory names that can't be created successfully.

parent aa8fe1a2
No related branches found
No related tags found
No related merge requests found
......@@ -168,8 +168,7 @@ private class DiskStore(blockManager: BlockManager, rootDirs: String)
localDirId = "%s-%04x".format(dateFormat.format(new Date), rand.nextInt(65536))
localDir = new File(rootDir, "spark-local-" + localDirId)
if (!localDir.exists) {
localDir.mkdirs()
foundLocalDir = true
foundLocalDir = localDir.mkdirs()
}
} catch {
case e: Exception =>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment