From deedb9e7b722d9fb37c89d3ef82b6bb2d470dcbe Mon Sep 17 00:00:00 2001 From: Matei Zaharia Date: Thu, 23 Aug 2012 20:24:38 -0700 Subject: Fix further issues with tests and broadcast. The broadcast fix is to store values as MEMORY_ONLY_DESER instead of MEMORY_ONLY, which will save substantial time on serialization. --- bagel/src/test/scala/bagel/BagelSuite.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bagel/src/test/scala') diff --git a/bagel/src/test/scala/bagel/BagelSuite.scala b/bagel/src/test/scala/bagel/BagelSuite.scala index d2189169d2..3da7152a09 100644 --- a/bagel/src/test/scala/bagel/BagelSuite.scala +++ b/bagel/src/test/scala/bagel/BagelSuite.scala @@ -18,7 +18,10 @@ class BagelSuite extends FunSuite with Assertions with BeforeAndAfter { var sc: SparkContext = _ after { - sc.stop() + if (sc != null) { + sc.stop() + sc = null + } } test("halting by voting") { -- cgit v1.2.3