You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Marko A. Rodriguez (JIRA)" <ji...@apache.org> on 2016/12/06 14:04:58 UTC
[jira] [Created] (TINKERPOP-1581) Gremlin-Python driver connection
is not thread safe.
Marko A. Rodriguez created TINKERPOP-1581:
---------------------------------------------
Summary: Gremlin-Python driver connection is not thread safe.
Key: TINKERPOP-1581
URL: https://issues.apache.org/jira/browse/TINKERPOP-1581
Project: TinkerPop
Issue Type: Bug
Components: language-variant
Affects Versions: 3.2.3
Reporter: Marko A. Rodriguez
Fix For: 3.2.4
From Dave on the mailing list.
gremlin-python should work fine with threads, but there is a bug in the current code that makes it ignore the 'loop' parameter when it's there (and puts all calls on the same loop when it isn't, leading to crashes when running many threads):
At line 43 in driver_remote_connection.py (function `DriverRemoteConnection`):
{code}
if loop is None:
self._loop = ioloop.IOLoop.current()
{code}
should be:
{code}
if loop is None:
self._loop = ioloop.IOLoop.current()
else:
self._loop = loop
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)