[Bug?] Updating and then removing the property in the same transaction leaves the property with an older value


Bharat Dighe <bdi...@...>
 

Is it a known bug? Any workaround?

Added a vertex
gremlin> v=graph.addVertex();
==>v[204804096]
gremlin> v.property("name", "name1");
==>vp[name->name1]
gremlin> v.property("p1", "v");
==>vp[p1->v]
gremlin> v.property("p2", "v");
==>vp[p2->v]
gremlin> graph.tx().commit();
==>null
gremlin> g.V(204804096).properties();
==>vp[name->name1]
==>vp[p1->v]
==>vp[p2->v]
gremlin> graph.tx().commit();
==>null

Updated propeties p1 and p2 to value x
gremlin> v=g.V().has("name", "name1").next();
==>v[204804096]
gremlin> v.property("p1", "x");
==>vp[p1->x]
gremlin> v.property("p2", "x")
==>vp[p2->x]
gremlin> graph.tx().commit();
==>null
gremlin> g.V(204804096).properties();
==>vp[name->name1]
==>vp[p1->x]
==>vp[p2->x]

Updated propeties p1 and p2 to value y and in the same transaction the properties are removed

gremlin> v=g.V().has("name", "name1").next();
==>v[204804096]
gremlin> v.property("p1", "y");
==>vp[p1->y]
gremlin> v.property("p2", "y");
==>vp[p2->y]
gremlin> v.property("p1").remove()
==>null
gremlin> v.property("p2").remove()
==>null
gremlin> g.V(204804096).properties();
==>vp[name->name1]
==>vp[p1->x]
==>vp[p2->x]
gremlin> graph.tx().commit();
==>null
gremlin> g.V(204804280).properties();
==>vp[name->v1]
==>vp[p1->x]
==>vp[p2->x]

Properties p1 and p2 are not removed. Their values are set to previous value of "x".




Join janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.