We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba55d20 commit 00b402eCopy full SHA for 00b402e
core/src/main/scala/org/apache/spark/serializer/KryoSerializer.scala
@@ -209,7 +209,7 @@ private[spark] class KryoSerializerInstance(ks: KryoSerializer) extends Serializ
209
* pool of size one. SerializerInstances are not thread-safe, hence accesses to this field are
210
* not synchronized.
211
*/
212
- @Nullable private[this] var cachedKryo: Kryo = null
+ @Nullable private[this] var cachedKryo: Kryo = borrowKryo()
213
214
/**
215
* Borrows a [[Kryo]] instance. If possible, this tries to re-use a cached Kryo instance;
0 commit comments