You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by davebshow <gi...@git.apache.org> on 2016/12/09 21:49:46 UTC

[GitHub] tinkerpop pull request #515: TINKERPOP-1581 Gremlin-Python driver connection...

GitHub user davebshow opened a pull request:

    https://github.com/apache/tinkerpop/pull/515

    TINKERPOP-1581 Gremlin-Python driver connection is not thread safe.

    https://issues.apache.org/jira/browse/TINKERPOP-1581
    
    This was a simple fix. The `DriverRemoteConnection.__init__` method no longer ignores the `loop` kwarg passed by user. I added two tests using threads as well. One demonstrates how not passing an `IOLoop`, which was in effect the behavior before this PR, will cause a `RuntimeError`. The other shows how you can now pass an `IOLoop` for each thread to avoid this problem.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apache/tinkerpop TINKERPOP-1581

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/tinkerpop/pull/515.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #515
    
----
commit 2f3386daed8323b77aa48ed92335f353d09d06c1
Author: davebshow <da...@gmail.com>
Date:   2016-12-09T21:40:53Z

    allow user to pass loop to DriverRemoteConnection. added multi-threaded tests.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] tinkerpop issue #515: TINKERPOP-1581 Gremlin-Python driver connection is not...

Posted by okram <gi...@git.apache.org>.
Github user okram commented on the issue:

    https://github.com/apache/tinkerpop/pull/515
  
    VOTE +1


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] tinkerpop pull request #515: TINKERPOP-1581 Gremlin-Python driver connection...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/tinkerpop/pull/515


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] tinkerpop issue #515: TINKERPOP-1581 Gremlin-Python driver connection is not...

Posted by spmallette <gi...@git.apache.org>.
Github user spmallette commented on the issue:

    https://github.com/apache/tinkerpop/pull/515
  
    After the recent additional fix from @davebshow this seems to now pass consistently. I've done a number of test runs with docker and my local environments and all is good.
    
    VOTE +1


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---