[ https://issues.apache.org/jira/browse/TINKERPOP-1511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15580528#comment-15580528 ]
stephen mallette commented on TINKERPOP-1511: --------------------------------------------- [~robertdale] do you also find that if you sleep the thread (as it mentioned on the mailing list) that this code works? {code} > On the other hand, if I yield a little between creation and traversal: new_block = self.g.addV('block').property('hash', hash_str).property('txt', txt_str).id().next() time.sleep(0.1) test = self.g.V(new_block).id().next() # test = self.g.V().has('block', 'hash', hash_str).id().next() > The code works fine {code} > Remote client addV, V() > ----------------------- > > Key: TINKERPOP-1511 > URL: https://issues.apache.org/jira/browse/TINKERPOP-1511 > Project: TinkerPop > Issue Type: Bug > Components: server > Affects Versions: 3.2.2 > Reporter: Robert Dale > Priority: Critical > Labels: console, groovy, neo4j, python > > I could reproduce on remote neo4j, but not embedded, nor remote TinkerGraph. > server: > ./bin/gremlin-server.sh conf/gremlin-server-neo4j.yaml > console: > ./bin/gremlin.sh > gremlin> graph = EmptyGraph.instance() > ==>emptygraph[empty] > gremlin> g = graph.traversal().withRemote('conf/remote-graph.properties') > ==>graphtraversalsource[emptygraph[empty], standard] > gremlin> for (n in 0..10000) > { x = g.addV('block').property('hash', > '1234').property('txt','text').id().next(); g.V(x).id().next(); } > java.util.NoSuchElementException > Type ':help' or ':h' for help. > Display stack trace? [yN]y > java.util.NoSuchElementException > at org.apache.tinkerpop.gremlin.driver.ResultSet$1.next(ResultSet.java:158) > at org.apache.tinkerpop.gremlin.driver.ResultSet$1.next(ResultSet.java:140) > at > org.apache.tinkerpop.gremlin.driver.remote.DriverRemoteTraversal$TraverserIterator.next(DriverRemoteTraversal.java:118) > at > org.apache.tinkerpop.gremlin.driver.remote.DriverRemoteTraversal$TraverserIterator.next(DriverRemoteTraversal.java:103) > at > org.apache.tinkerpop.gremlin.driver.remote.DriverRemoteTraversal.nextTraverser(DriverRemoteTraversal.java:95) > at > org.apache.tinkerpop.gremlin.process.remote.traversal.step.map.RemoteStep.processNextStart(RemoteStep.java:65) > at > org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.next(AbstractStep.java:128) > at > org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.next(AbstractStep.java:38) > at > org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal.next(DefaultTraversal.java:186) > at java_util_Iterator$next.call(Unknown Source) > at groovysh_evaluate.run(groovysh_evaluate:3) > at > org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:232) > at org.codehaus.groovy.tools.shell.Interpreter.evaluate(Interpreter.groovy:70) > at org.codehaus.groovy.tools.shell.Groovysh.execute(Groovysh.groovy:190) > at > org.apache.tinkerpop.gremlin.console.GremlinGroovysh.super$3$execute(GremlinGroovysh.groovy) > at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) > at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) > at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1215) > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:132) > at > org.apache.tinkerpop.gremlin.console.GremlinGroovysh.execute(GremlinGroovysh.groovy:72) > at org.codehaus.groovy.tools.shell.Shell.leftShift(Shell.groovy:122) > at org.codehaus.groovy.tools.shell.ShellRunner.work(ShellRunner.groovy:95) > at > org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$work(InteractiveShellRunner.groovy) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) > at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) > at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1215) > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:132) > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:152) > at > org.codehaus.groovy.tools.shell.InteractiveShellRunner.work(InteractiveShellRunner.groovy:124) > at org.codehaus.groovy.tools.shell.ShellRunner.run(ShellRunner.groovy:59) > at > org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$run(InteractiveShellRunner.groovy) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) > at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) > at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1215) > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:132) > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:152) > at > org.codehaus.groovy.tools.shell.InteractiveShellRunner.run(InteractiveShellRunner.groovy:83) > at > org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:232) > at org.apache.tinkerpop.gremlin.console.Console.<init>(Console.groovy:152) > at > org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:232) > at org.apache.tinkerpop.gremlin.console.Console.main(Console.groovy:449) -- This message was sent by Atlassian JIRA (v6.3.4#6332)