Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1581

Gremlin-Python driver connection is not thread safe.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.3
    • 3.2.4
    • python
    • None

    Description

      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`):

              if loop is None:
                  self._loop = ioloop.IOLoop.current()
      

      should be:

              if loop is None:
                  self._loop = ioloop.IOLoop.current()
              else:
                  self._loop = loop
      

      Attachments

        Issue Links

          Activity

            People

              davebshow David Brown
              okram Marko A. Rodriguez
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: