Github user spmallette commented on a diff in the pull request:
https://github.com/apache/tinkerpop/pull/932#discussion_r217737875
--- Diff:
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoSerializersV3d0.java
---
@@ -427,7 +428,12 @@ else if (1 == arguments)
output.writeString(object.getName());
output.writeDouble(object.getDuration(TimeUnit.NANOSECONDS) /
1000000d);
kryo.writeObject(output, object.getCounts());
- kryo.writeObject(output, object.getAnnotations());
+
+ // annotations is a synchronized LinkedHashMap - get rid of
the "synch" for serialization as gryo
+ // doesn't know how to deserialize that well and LinkedHashMap
should work with 3.3.x and previous
+ final Map<String, Object> annotations = new LinkedHashMap<>();
+ object.getAnnotations().forEach(annotations::put);
+ kryo.writeObject(output, annotations);
// kryo might have a problem with LinkedHashMap value
collections. can't recreate it independently but
--- End diff --
i wonder what that was in reference to.................we serder
`LinkedHashMap` all over the place
---