[ 
https://issues.apache.org/jira/browse/TINKERPOP-2505?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen Mallette closed TINKERPOP-2505.
---------------------------------------
    Fix Version/s: 3.4.10
                   3.5.0
         Assignee: Stephen Mallette
       Resolution: Fixed

I've fixed the issue with this CTR change: 
https://github.com/apache/tinkerpop/commit/3f93fdc72f71a3191a88cc6e54a57b701b21e6b3

> 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
>            Assignee: Stephen Mallette
>            Priority: Major
>             Fix For: 3.5.0, 3.4.10
>
>
> 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
> Unknown macro: \{, 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 30 seconds with an error message from 
> the client 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