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

Test Failure - test_session.TestSession.test_unacknowledged_writes

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

      test_session.TestSession.test_unacknowledged_writes occasionally fails on MongoDB 4.3-latest with:

       [2019/12/02 12:51:40.730] ERROR [0.453s]: test_unacknowledged_writes (test_session.TestSession)
       [2019/12/02 12:51:40.731] ----------------------------------------------------------------------
       [2019/12/02 12:51:40.731] Traceback (most recent call last):
       [2019/12/02 12:51:40.731]   File "/data/mci/973acb7cf68f5d3113300312d29f4a67/src/test/test_session.py", line 92, in tearDown
       [2019/12/02 12:51:40.731]     self.client.drop_database('pymongo_test')
       [2019/12/02 12:51:40.731]   File "/data/mci/973acb7cf68f5d3113300312d29f4a67/src/pymongo/mongo_client.py", line 1967, in drop_database
       [2019/12/02 12:51:40.731]     session=session)
       [2019/12/02 12:51:40.731]   File "/data/mci/973acb7cf68f5d3113300312d29f4a67/src/pymongo/database.py", line 630, in _command
       [2019/12/02 12:51:40.731]     client=self.__client)
       [2019/12/02 12:51:40.731]   File "/data/mci/973acb7cf68f5d3113300312d29f4a67/src/pymongo/pool.py", line 613, in command
       [2019/12/02 12:51:40.731]     user_fields=user_fields)
       [2019/12/02 12:51:40.731]   File "/data/mci/973acb7cf68f5d3113300312d29f4a67/src/pymongo/network.py", line 167, in command
       [2019/12/02 12:51:40.731]     parse_write_concern_error=parse_write_concern_error)
       [2019/12/02 12:51:40.731]   File "/data/mci/973acb7cf68f5d3113300312d29f4a67/src/pymongo/helpers.py", line 159, in _check_command_response
       [2019/12/02 12:51:40.731]     raise OperationFailure(msg % errmsg, code, response)
       [2019/12/02 12:51:40.731] OperationFailure: cannot perform operation: a background operation is currently running for database pymongo_test
      

      For example: https://evergreen.mongodb.com/task/mongo_python_driver_tests_python_version_rhel62_test_ssl__platform~rhel62_auth~noauth_ssl~nossl_python_version~2.7_coverage~coverage_test_latest_standalone_94cb6acc09da11d34888e55284c162c7192f707f_19_12_02_20_32_37

      We should track down the server change that causes this error and/or fix this test.

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

              Created:
              Updated:
              Resolved: