Skip to content

Commit

Permalink
Defeat early garbage collection of test suite variable by aggressive …
Browse files Browse the repository at this point in the history
…JVMs
  • Loading branch information
tellison committed May 8, 2015
1 parent ebff732 commit 77d1c8f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ class ContextCleanerSuite extends ContextCleanerSuiteBase {
}

// Test that GC causes shuffle cleanup after dereferencing the RDD
rdd.count() // Defeat any early collection of rdd variable by the JVM
val postGCTester = new CleanerTester(sc, shuffleIds = Seq(0))
rdd = null // Make RDD out of scope, so that corresponding shuffle goes out of scope
runGC()
Expand Down

0 comments on commit 77d1c8f

Please sign in to comment.