You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Robert Dale (JIRA)" <ji...@apache.org> on 2016/11/29 14:09:58 UTC
[jira] [Updated] (TINKERPOP-1572) Impossible to get DetachedVertex
when Connecting via withRemote
[ https://issues.apache.org/jira/browse/TINKERPOP-1572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Dale updated TINKERPOP-1572:
-----------------------------------
Affects Version/s: 3.2.3
Priority: Minor (was: Major)
Issue Type: Improvement (was: Bug)
I think withRemote() should work like client.submit() where changing the serializer (or some other configuration) dictates whether Detached or Reference is returned.
> Impossible to get DetachedVertex when Connecting via withRemote
> ----------------------------------------------------------------
>
> Key: TINKERPOP-1572
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1572
> Project: TinkerPop
> Issue Type: Improvement
> Components: server
> Affects Versions: 3.2.0-incubating, 3.2.3
> Reporter: Robert Dale
> Assignee: stephen mallette
> Priority: Minor
>
> Problem:
> Using gremlin-console:
> {noformat}
> 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
> {noformat}
> Works when is.testing=true
> {noformat}
> 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
> {noformat}
> Appears to be a condition in org.apache.tinkerpop.gremlin.server.util.TraverserIterator
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)