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

Test Failure - test_session.test_command_cursor_close

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.6.1
    • Tests
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: