Skip to content

Commit

Permalink
[SPARK-1527] change rootDir*.getName to rootDir*.getAbsolutePath
Browse files Browse the repository at this point in the history
JIRA issue: [SPARK-1527](https://issues.apache.org/jira/browse/SPARK-1527)

getName() only gets the last component of the file path. When deleting test-generated directories,
we should pass the generated directory's absolute path to DiskBlockManager.

Author: Ye Xianjin <[email protected]>

This patch had conflicts when merged, resolved by
Committer: Patrick Wendell <[email protected]>

Closes apache#436 from advancedxy/SPARK-1527 and squashes the following commits:

4678bab [Ye Xianjin] change rootDir*.getname to rootDir*.getAbsolutePath so the temporary directories are deleted when the test is finished.
  • Loading branch information
advancedxy authored and pwendell committed May 14, 2014
1 parent 5c0dafc commit 753b04d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class DiskBlockManagerSuite extends FunSuite with BeforeAndAfterEach with Before
rootDir0.deleteOnExit()
rootDir1 = Files.createTempDir()
rootDir1.deleteOnExit()
rootDirs = rootDir0.getName + "," + rootDir1.getName
rootDirs = rootDir0.getAbsolutePath + "," + rootDir1.getAbsolutePath
println("Created root dirs: " + rootDirs)
}

Expand Down

0 comments on commit 753b04d

Please sign in to comment.