Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1475

Test Failure - test_session.test_command_cursor_close

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.1
    • Affects Version/s: None
    • Component/s: Tests
    • None

      Failed in a patch build:

       ERROR: deque mutated during iteration (RuntimeError)
       Traceback (most recent call last):
         File "/data/mci/ed6a3d8b2f9b50f863c015bd189a1816/src/test/test_session.py", line 625, in test_command_cursor_close
           lambda cursor: cursor.close())
         File "/data/mci/ed6a3d8b2f9b50f863c015bd189a1816/src/test/test_session.py", line 602, in _test_cursor_helper
           self.assertNotIn(lsid, session_ids(self.client))
         File "/data/mci/ed6a3d8b2f9b50f863c015bd189a1816/src/test/test_session.py", line 57, in session_ids
           return [s.session_id for s in client._topology._session_pool]
         File "/data/mci/ed6a3d8b2f9b50f863c015bd189a1816/src/test/test_session.py", line 57, in <listcomp>
           return [s.session_id for s in client._topology._session_pool]
       RuntimeError: deque mutated during iteration
      

      I think this is a bug in the test suite. It should acquire the topology lock before iterating the internal session pool.

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: