[
https://issues.apache.org/jira/browse/TINKERPOP-1572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15705058#comment-15705058
]
stephen mallette edited comment on TINKERPOP-1572 at 11/29/16 11:46 AM:
------------------------------------------------------------------------
works fine for me:
{code}
gremlin> :remote connect tinkerpop.server conf/remote-objects.yaml
==>Configured localhost/127.0.0.1:8182
gremlin> :> g.addV("name","stephen")
==>v[0]
gremlin> result.get(0).getObject().class
==>class org.apache.tinkerpop.gremlin.structure.util.reference.ReferenceVertex
{code}
or your way with "remote":
{code}
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
{code}
Here's my {{remote-objects.yaml}} in full:
{code}
hosts: [localhost]
port: 8182
serializer: { className:
org.apache.tinkerpop.gremlin.driver.ser.GryoLiteMessageSerializerV1d0,
config: { ioRegistries:
[org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerIoRegistry] }}
{code}
was (Author: spmallette):
works fine for me:
{code}
gremlin> :remote connect tinkerpop.server conf/remote-objects.yaml
==>Configured localhost/127.0.0.1:8182
gremlin> :> g.addV("name","stephen")
==>v[0]
gremlin> result.get(0).getObject().class
==>class org.apache.tinkerpop.gremlin.structure.util.reference.ReferenceVertex
{code}
or your way with "remote":
{code}
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
{code}
Here's my {{remote.yaml}} in full:
{code}
hosts: [localhost]
port: 8182
serializer: { className:
org.apache.tinkerpop.gremlin.driver.ser.GryoLiteMessageSerializerV1d0,
config: { ioRegistries:
[org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerIoRegistry] }}
{code}
> Impossible to get DetachedVertex when Connecting via withRemote
> ----------------------------------------------------------------
>
> Key: TINKERPOP-1572
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1572
> Project: TinkerPop
> Issue Type: Bug
> Components: server
> Affects Versions: 3.2.0-incubating
> Reporter: Robert Dale
> Assignee: stephen mallette
>
> 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)