Skip to content

Commit

Permalink
Enable registrationRequired, which would have caught this bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed Dec 29, 2014
1 parent 069d8a7 commit d5b409f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ class PythonBroadcastSuite extends FunSuite with Matchers {
}
val broadcast = new PythonBroadcast(broadcastDataFile.getAbsolutePath)
assertBroadcastIsValid(broadcast)
val conf = new SparkConf().set("spark.kryo.registrationRequired", "true")
val deserializedBroadcast =
Utils.clone[PythonBroadcast](broadcast, new KryoSerializer(new SparkConf()).newInstance())
Utils.clone[PythonBroadcast](broadcast, new KryoSerializer(conf).newInstance())
assertBroadcastIsValid(deserializedBroadcast)
} finally {
Utils.deleteRecursively(tempDir)
Expand Down

0 comments on commit d5b409f

Please sign in to comment.