I am creating a graph in a highly multithreaded environment and I am encountering a strange error. Whilst running I sometimes get an error that the property I am trying to access does not exist.
java.lang.IllegalStateException: The property does not exist as it has no key, value, or associated element
To try and figure this out I put a break point when that error occurred and found some strange behaviour.
When I run :
Vertex vertex = graph.traversal().V(123).next();
vertex.properties();
I see the list of all the properties I am expecting, for example "PROP1", "PROP2", and "PROP3". However when I run the following:
vertex.property("PROP1").value();
I get an error that the property does not exist. Even more strange is that vertex.property(xxx).value(); works for the other properties "PROP2" and "PROP3". What can lead to this strange behaviour ?