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

Test Failure - test_Cancel_server_check on MMAPv1 4.0 replica set

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.3
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      test_Cancel_server_check is failing on Storage MMAPv1 Python 3.7 Ubuntu 18.04 test-4.0-replica_set since PYTHON-3312:

       [2022/09/26 22:02:56.680] ERROR [0.139s]: test_Cancel_server_check (test_discovery_and_monitoring.TestUnifiedCancelServerCheck)
       [2022/09/26 22:02:56.680] ----------------------------------------------------------------------
       [2022/09/26 22:02:56.680] Traceback (most recent call last):
       [2022/09/26 22:02:56.680]   File "/data/mci/791bfcd8ed3af82d2d566031444a8d64/src/pymongo/mongo_client.py", line 1384, in _retry_internal
       [2022/09/26 22:02:56.680]     return func(session, sock_info, retryable)
       [2022/09/26 22:02:56.680]   File "/data/mci/791bfcd8ed3af82d2d566031444a8d64/src/pymongo/collection.py", line 557, in _insert_command
       [2022/09/26 22:02:56.680]     retryable_write=retryable_write,
       [2022/09/26 22:02:56.680]   File "/data/mci/791bfcd8ed3af82d2d566031444a8d64/src/pymongo/pool.py", line 789, in command
       [2022/09/26 22:02:56.680]     write_concern=write_concern,
       [2022/09/26 22:02:56.680]   File "/data/mci/791bfcd8ed3af82d2d566031444a8d64/src/pymongo/network.py", line 170, in command
       [2022/09/26 22:02:56.680]     parse_write_concern_error=parse_write_concern_error,
       [2022/09/26 22:02:56.680]   File "/data/mci/791bfcd8ed3af82d2d566031444a8d64/src/pymongo/helpers.py", line 181, in _check_command_response
       [2022/09/26 22:02:56.680]     raise OperationFailure(errmsg, code, response, max_wire_version)
       [2022/09/26 22:02:56.680] pymongo.errors.OperationFailure: Transaction numbers are only allowed on storage engines that support document-level locking, full error: {'operationTime': Timestamp(1664229702, 1), 'ok': 0.0, 'errmsg': 'Transaction numbers are only allowed on storage engines that support document-level locking', 'code': 20, 'codeName': 'IllegalOperation', '$clusterTime': {'clusterTime': Timestamp(1664229702, 1), 'signature': {'hash': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 'keyId': 0}}}
       [2022/09/26 22:02:56.680] During handling of the above exception, another exception occurred:
       [2022/09/26 22:02:56.680] Traceback (most recent call last):
       [2022/09/26 22:02:56.680]   File "/data/mci/791bfcd8ed3af82d2d566031444a8d64/src/test/unified_format.py", line 1648, in test_case
       [2022/09/26 22:02:56.680]     self.run_scenario(spec)
       [2022/09/26 22:02:56.680]   File "/data/mci/791bfcd8ed3af82d2d566031444a8d64/src/test/unified_format.py", line 1601, in run_scenario
       [2022/09/26 22:02:56.680]     self._run_scenario(spec, uri)
       [2022/09/26 22:02:56.680]   File "/data/mci/791bfcd8ed3af82d2d566031444a8d64/src/test/unified_format.py", line 1625, in _run_scenario
       [2022/09/26 22:02:56.680]     self.run_operations(spec["operations"])
       [2022/09/26 22:02:56.680]   File "/data/mci/791bfcd8ed3af82d2d566031444a8d64/src/test/unified_format.py", line 1536, in run_operations
       [2022/09/26 22:02:56.680]     self.run_entity_operation(op)
       [2022/09/26 22:02:56.680]   File "/data/mci/791bfcd8ed3af82d2d566031444a8d64/src/test/unified_format.py", line 1277, in run_entity_operation
       [2022/09/26 22:02:56.680]     result = cmd(**dict(arguments))
       [2022/09/26 22:02:56.680]   File "/data/mci/791bfcd8ed3af82d2d566031444a8d64/src/pymongo/collection.py", line 628, in insert_one
       [2022/09/26 22:02:56.680]     comment=comment,
       [2022/09/26 22:02:56.680]   File "/data/mci/791bfcd8ed3af82d2d566031444a8d64/src/pymongo/collection.py", line 562, in _insert_one
       [2022/09/26 22:02:56.680]     self.__database.client._retryable_write(acknowledged, _insert_command, session)
       [2022/09/26 22:02:56.680]   File "/data/mci/791bfcd8ed3af82d2d566031444a8d64/src/pymongo/mongo_client.py", line 1470, in _retryable_write
       [2022/09/26 22:02:56.680]     return self._retry_with_session(retryable, func, s, None)
       [2022/09/26 22:02:56.680]   File "/data/mci/791bfcd8ed3af82d2d566031444a8d64/src/pymongo/mongo_client.py", line 1343, in _retry_with_session
       [2022/09/26 22:02:56.680]     return self._retry_internal(retryable, func, session, bulk)
       [2022/09/26 22:02:56.680]   File "/data/mci/791bfcd8ed3af82d2d566031444a8d64/src/pymongo/_csot.py", line 105, in csot_wrapper
       [2022/09/26 22:02:56.680]     return func(self, *args, **kwargs)
       [2022/09/26 22:02:56.680]   File "/data/mci/791bfcd8ed3af82d2d566031444a8d64/src/pymongo/mongo_client.py", line 1400, in _retry_internal
       [2022/09/26 22:02:56.680]     _add_retryable_write_error(exc, max_wire_version)
       [2022/09/26 22:02:56.680]   File "/data/mci/791bfcd8ed3af82d2d566031444a8d64/src/pymongo/mongo_client.py", line 2085, in _add_retryable_write_error
       [2022/09/26 22:02:56.680]     raise OperationFailure(errmsg, code, exc.details)
       [2022/09/26 22:02:56.680] pymongo.errors.OperationFailure: This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string., full error: {'operationTime': Timestamp(1664229702, 1), 'ok': 0.0, 'errmsg': 'Transaction numbers are only allowed on storage engines that support document-level locking', 'code': 20, 'codeName': 'IllegalOperation', '$clusterTime': {'clusterTime': Timestamp(1664229702, 1), 'signature': {'hash': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 'keyId': 0}}}
      

      https://evergreen.mongodb.com/task/mongo_python_driver_tests_storage_engines__platform~ubuntu_18.04_python_version~3.7_storage_engine~mmapv1_test_4.0_replica_set_13e2715af0eb2f8fdcb5fae470db1120112202a3_22_08_03_22_34_16

      We will need to skip this test ( it relies on retryable writes and they are not supported)

            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: