Skip to content

Commit

Permalink
Bypass SerializationDebugger for now (SPARK-7180)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Or committed Apr 28, 2015
1 parent 6d4d3f1 commit 9419efe
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import scala.collection.mutable

import org.scalatest.{BeforeAndAfterAll, FunSuite, PrivateMethodTester}

import org.apache.spark.{SparkContext, SparkException}
import org.apache.spark.{SparkConf, SparkContext, SparkException}
import org.apache.spark.serializer.SerializerInstance

/**
Expand All @@ -38,7 +38,13 @@ class ClosureCleanerSuite2 extends FunSuite with BeforeAndAfterAll with PrivateM
private var closureSerializer: SerializerInstance = null

override def beforeAll(): Unit = {
sc = new SparkContext("local", "test")
val conf = new SparkConf()
.set("spark.master", "local")
.set("spark.app.name", "test")
// SerializationDebugger currently cannot serialize ClosureCleanerSuite2 because
// it has non-serializable fields but inherits a serializable class (SPARK-7180)
.set("spark.serializer.extraDebugInfo", "false")
sc = new SparkContext(conf)
closureSerializer = sc.env.closureSerializer.newInstance()
}

Expand Down

0 comments on commit 9419efe

Please sign in to comment.