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

Impossible to get DetachedVertex when Connecting via withRemote

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 3.2.0-incubating, 3.2.3
    • None
    • server
    • None

    Description

      Problem:
      Using gremlin-console:

      gremlin> graph = EmptyGraph.instance()
      ==>emptygraph[empty]
      gremlin> g = graph.traversal().withRemote('conf/remote-graph.properties')
      ==>graphtraversalsource[emptygraph[empty], standard]
      gremlin> g.addV('foo').property('key','value')
      ==>v[0]
      gremlin> g.V().next().getClass()
      ==>class org.apache.tinkerpop.gremlin.structure.util.reference.ReferenceVertex
      

      Works when is.testing=true

      export JAVA_OPTIONS="-Dis.testing=true"
      # restart server
      # repeat above test, result is:
      gremlin> g.V().next().getClass()
      ==>class org.apache.tinkerpop.gremlin.structure.util.detached.DetachedVertex
      

      Appears to be a condition in org.apache.tinkerpop.gremlin.server.util.TraverserIterator

      Attachments

        Activity

          People

            spmallette Stephen Mallette
            rdale Robert Dale
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: