Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2624

Ensure that clone() of a remote traversal resets all state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.4.12
    • None
    • driver
    • 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
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            spmallette Stephen Mallette
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: