Github user srowen commented on a diff in the pull request: https://github.com/apache/spark/pull/22855#discussion_r229737692 --- Diff: core/src/main/scala/org/apache/spark/serializer/KryoSerializer.scala --- @@ -92,6 +94,16 @@ class KryoSerializer(conf: SparkConf) new KryoOutput(bufferSize, math.max(bufferSize, maxBufferSize)) } + @transient + private lazy val factory: KryoFactory = new KryoFactory() { --- End diff -- I think you're welcome to just write ... ``` private lazy val factory = new KryoFactory() { override def create: Kryo = newKryo() } ``` but it doesn't matter.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org