Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions core/src/test/scala/org/apache/spark/SortShuffleSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ class SortShuffleSuite extends ShuffleSuite with BeforeAndAfterAll {

override def beforeAll() {
super.beforeAll()
// Once 'spark.local.dir' is set, it is cached. Unless this is manually cleared
// before/after a test, it could return the same directory even if this property
// is configured.
Utils.clearLocalRootDirs()
conf.set("spark.shuffle.manager", "sort")
}

Expand All @@ -50,6 +54,7 @@ class SortShuffleSuite extends ShuffleSuite with BeforeAndAfterAll {
override def afterEach(): Unit = {
try {
Utils.deleteRecursively(tempDir)
Utils.clearLocalRootDirs()
Copy link
Member

@HyukjinKwon HyukjinKwon May 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add this in beforeEach too. This might already be initialised in previous tests.

} finally {
super.afterEach()
}
Expand Down