Dave Bechberger created TINKERPOP-2505:
------------------------------------------

             Summary: Gremlin Python Client Query Times out at 30 seconds 
instead of the server timeout
                 Key: TINKERPOP-2505
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2505
             Project: TinkerPop
          Issue Type: Bug
          Components: python
    Affects Versions: 3.4.9
            Reporter: Dave Bechberger


With the release of the 3.4.9 gremlinpython client all queries are now timing 
out at 30 seconds regardless of the server timeout specified.  This was not the 
case with the 3.4.8 client.

 

Steps to Reproduce
 # Set the Gremlin Server timeout to 60 seconds
 # Add a graph with loops
 # Install gremlinpython 3.4.8
 # {{Run Test Code and it times out in 60 seconds with an error message from 
the server like this   }}
{{A timeout occurred during traversal evaluation of [RequestMessage\{, 
requestId=450b1b70-49af-409c-9838-826fce6a1634, op='bytecode', 
processor='traversal', args={gremlin=[[], [V(0), repeat([[], [out()]])]], 
aliases={g=g}}}] - consider increasing the limit given to evaluationTimeout}}
 # Install gremlinpython 3.4.9

 # {{Run Test Code and it times out in 60 seconds with an error message from 
the server like this}}
{{Operation timed out after 30 seconds}}

 

Add Graph Code

{{g.addV('test').property('id', 1)}}

{{g.addV('test').property('id', 2)}}

{{g.addE('loop').from(V().has('id', 1)).to(}}{{V().has('id', 2)}}{{)}}

{{g.addE('loop').from(}}{{V().has('id', 2)}}{{).to(}}{{V().has('id', 1)}}{{)}}

 

Test Code
{quote}{{from gremlin_python import statics}}{{from 
gremlin_python.structure.graph import Graph}}{{from 
gremlin_python.process.graph_traversal import __}}{{from 
gremlin_python.process.anonymous_traversal import traversal}}{{from 
gremlin_python.process.traversal import *}}{{from 
gremlin_python.driver.driver_remote_connection import 
DriverRemoteConnection}}{{from gremlin_python.process.traversal import 
T}}{{connection = DriverRemoteConnection('ws://localhost:8182/gremlin', 
'g')}}{{g = 
traversal().withRemote(connection)}}{{try:}}{{print(g.V(0).repeat(__.out()).next())}}{{except
 Exception as e:}}{{print(e)}}{quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to