From 77d1c8f098f601bbbcd005982eaf48979ef9d910 Mon Sep 17 00:00:00 2001 From: Tim Ellison Date: Fri, 8 May 2015 15:08:17 +0100 Subject: [PATCH] Defeat early garbage collection of test suite variable by aggressive JVMs --- core/src/test/scala/org/apache/spark/ContextCleanerSuite.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/test/scala/org/apache/spark/ContextCleanerSuite.scala b/core/src/test/scala/org/apache/spark/ContextCleanerSuite.scala index c7868ddcf770f..cb30e1f4e63a1 100644 --- a/core/src/test/scala/org/apache/spark/ContextCleanerSuite.scala +++ b/core/src/test/scala/org/apache/spark/ContextCleanerSuite.scala @@ -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()