Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.4.12
-
None
-
None
Description
Traversal.clone() doesn't seem to reset remote traversal state fully as it does for embedded modes. Remote traversals should behave in the same fashion as embedded ones:
gremlin> g = traversal().withRemote(DriverRemoteConnection.using("localhost",8182,"g")) ==>graphtraversalsource[emptygraph[empty], standard] gremlin> t = g.V().filter(bothE('knows')).map(bothE("knows").order().by('weight',desc).limit(1));[] gremlin> t.clone() ==>e[8][1-knows->4] ==>e[8][1-knows->4] ==>e[7][1-knows->2] gremlin> t.clone() ==>e[8][1-knows->4] ==>e[8][1-knows->4] ==>e[7][1-knows->2] gremlin> t ==>e[8][1-knows->4] ==>e[8][1-knows->4] ==>e[7][1-knows->2] gremlin> t gremlin> t.clone() gremlin> gl = TinkerFactory.createModern().traversal() ==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard] gremlin> tl = gl.V().filter(bothE('knows')).map(bothE("knows").order().by('weight',desc).limit(1));[] gremlin> tl.clone() ==>e[8][1-knows->4] ==>e[7][1-knows->2] ==>e[8][1-knows->4] gremlin> tl.clone() ==>e[8][1-knows->4] ==>e[7][1-knows->2] ==>e[8][1-knows->4] gremlin> tl ==>e[8][1-knows->4] ==>e[7][1-knows->2] ==>e[8][1-knows->4] gremlin> tl gremlin> tl.clone() ==>e[8][1-knows->4] ==>e[7][1-knows->2] ==>e[8][1-knows->4