You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "stephen mallette (JIRA)" <ji...@apache.org> on 2017/09/13 11:55:00 UTC
[jira] [Updated] (TINKERPOP-1581) Gremlin-Python driver connection
is not thread safe.
[ https://issues.apache.org/jira/browse/TINKERPOP-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stephen mallette updated TINKERPOP-1581:
----------------------------------------
Component/s: (was: language-variant)
python
> 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: python
> 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.4.14#64029)