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

Gremlin-Python driver connection is not thread safe.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.3
    • Fix Version/s: 3.2.4
    • Component/s: python
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: