Janusgraph read query fails with "cannot write to closing transport" #4035
-
I am using I have a Flask API and I create a Janusgraph Connection Instance when my API is started like this,
Now, I run my read queries in this graph like,
and more. Now, these queries work fine but sometimes they fail with the error
and sometimes with
What does this error specify ? Do I need to close the transport or transaction explicitly after I run any read query on Graph ? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
How is this discussion different to what you wrote in #4022? Please don't create duplicate issues. It just makes it even harder for people who could possibly help you to keep up with new questions asked by users. |
Beta Was this translation helpful? Give feedback.
-
Is the connect() function called for every request to the flask app? This would not be OK. You would have to establish the connection at app startup and only reconnect if the connection would have timed out (this a long time, it is a websocket connection). In addition, to Florian's remark: it is possible to edit the original question if you want to add details. |
Beta Was this translation helpful? Give feedback.
-
No, I have not changed any default properties of Janusgraph. I have checked firewalls etc, and they seem to be causing no issue with Janusgraph connectivity. I am guessing this might be some gremlinpython version issue. I am currently using gremlinpython 3.5.5 with Janusgraph 0.6.3. I have updated gremlinpython to 3.6.0 and testing now. The problem here is the issue is not persistent. Sometimes it comes very often, but sometimes it never comes. So, it's hard to debug. What do you suggest? Is there any specific version of gremlinpython for Janusgraph 0.6.3. |
Beta Was this translation helpful? Give feedback.
-
I changed my gremlinpython version from 3.5.5 to 3.6.0 and it is working fine now, I am not sure what the issue was, but updating my gremlinpython to 3.6.0 helped. Thanks for the help @hadoopmarc @hadoopmarc The release page you shared above, even on that page for Janusgraph 0.6.3 version, gremlinpython they are using is 3.5.7, here: https://docs.janusgraph.org/interactions/connecting/python/ |
Beta Was this translation helpful? Give feedback.
I changed my gremlinpython version from 3.5.5 to 3.6.0 and it is working fine now, I am not sure what the issue was, but updating my gremlinpython to 3.6.0 helped. Thanks for the help @hadoopmarc
@hadoopmarc The release page you shared above, even on that page for Janusgraph 0.6.3 version, gremlinpython they are using is 3.5.7, here: https://docs.janusgraph.org/interactions/connecting/python/