Skip to content

Instantly share code, notes, and snippets.

@jcdavis
Created December 13, 2017 00:55
Show Gist options
  • Save jcdavis/3c943a206416c383933a11a3c308e6de to your computer and use it in GitHub Desktop.
Save jcdavis/3c943a206416c383933a11a3c308e6de to your computer and use it in GitHub Desktop.
Kryo stack Overflow
production@ class A {
case class B(a: Int)
}
defined class A
production@ kryo.writeObject(output, (new A).B(42))
38:44 DEBUG: [kryo] Write: B(42)
38:44 TRACE: [kryo] Optimize ints: true
38:44 TRACE: [kryo] Field a: int
38:44 TRACE: [kryo.FieldSerializerConfig] setIgnoreSyntheticFields: false
38:44 TRACE: [kryo] Field a: int
38:44 TRACE: [kryo] Field $outer: class $sess.cmd51$A
38:44 TRACE: [kryo] Register class name: $sess.cmd51$A$B (com.esotericsoftware.kryo.serializers.FieldSerializer)
38:44 TRACE: [kryo] FieldSerializer.write fields of class: $sess.cmd51$A$B
38:44 TRACE: [kryo] Write field: $outer ($sess.cmd51$A$B) pos=296012
38:44 TRACE: [kryo] Optimize ints: true
38:44 TRACE: [kryo] Field B$module: class $sess.cmd51$A$B$
38:44 TRACE: [kryo.FieldSerializerConfig] setIgnoreSyntheticFields: false
38:44 TRACE: [kryo] Field B$module: class $sess.cmd51$A$B$
38:44 TRACE: [kryo] Register class name: $sess.cmd51$A (com.esotericsoftware.kryo.serializers.FieldSerializer)
38:44 TRACE: [kryo] Write class name: $sess.cmd51$A
38:44 DEBUG: [kryo] Write: $sess.cmd51$A
38:44 TRACE: [kryo] FieldSerializer.write fields of class: $sess.cmd51$A
38:44 TRACE: [kryo] Write field: B$module ($sess.cmd51$A) pos=296027
38:44 TRACE: [kryo] Optimize ints: true
38:44 TRACE: [kryo.FieldSerializerConfig] setIgnoreSyntheticFields: false
38:44 TRACE: [kryo] Field $outer: class $sess.cmd51$A
38:44 TRACE: [kryo] Register class name: $sess.cmd51$A$B$ (com.esotericsoftware.kryo.serializers.FieldSerializer)
38:44 TRACE: [kryo] Write class name: $sess.cmd51$A$B$
38:44 DEBUG: [kryo] Write: B
38:44 TRACE: [kryo] FieldSerializer.write fields of class: $sess.cmd51$A$B$
38:44 TRACE: [kryo] Write field: $outer ($sess.cmd51$A$B$) pos=296045
38:44 TRACE: [kryo] Write class name reference 0: $sess.cmd51$A
38:44 DEBUG: [kryo] Write: $sess.cmd51$A
38:44 TRACE: [kryo] FieldSerializer.write fields of class: $sess.cmd51$A
38:44 TRACE: [kryo] Write field: B$module ($sess.cmd51$A) pos=296047
38:44 TRACE: [kryo] Write class name reference 1: $sess.cmd51$A$B$
38:44 DEBUG: [kryo] Write: B
38:44 TRACE: [kryo] FieldSerializer.write fields of class: $sess.cmd51$A$B$
38:44 TRACE: [kryo] Write field: $outer ($sess.cmd51$A$B$) pos=296049
38:44 TRACE: [kryo] Write class name reference 0: $sess.cmd51$A
38:44 DEBUG: [kryo] Write: $sess.cmd51$A
38:44 TRACE: [kryo] FieldSerializer.write fields of class: $sess.cmd51$A
38:44 TRACE: [kryo] Write field: B$module ($sess.cmd51$A) pos=296051
38:44 TRACE: [kryo] Write class name reference 1: $sess.cmd51$A$B$
38:44 DEBUG: [kryo] Write: B
38:44 TRACE: [kryo] FieldSerializer.write fields of class: $sess.cmd51$A$B$
38:44 TRACE: [kryo] Write field: $outer ($sess.cmd51$A$B$) pos=296053
38:44 TRACE: [kryo] Write class name reference 0: $sess.cmd51$A
38:44 DEBUG: [kryo] Write: $sess.cmd51$A
38:44 TRACE: [kryo] FieldSerializer.write fields of class: $sess.cmd51$A
38:44 TRACE: [kryo] Write field: B$module ($sess.cmd51$A) pos=296055
38:44 TRACE: [kryo] Write class name reference 1: $sess.cmd51$A$B$
38:44 DEBUG: [kryo] Write: B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment