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

Unskip test_readConcern_available_with_out_stage on 5.1+

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.0
    • Affects Version/s: None
    • Component/s: None
    • None

      The following test is failing on latest sharded clusters (v5.1.0-alpha-1170-g4c2c9d1):

       [2021/09/29 20:49:43.450] ERROR [0.143s]: test_readConcern_available_with_out_stage (test_crud_unified.TestUnifiedAggregateOutReadConcern)
       [2021/09/29 20:49:43.450] ----------------------------------------------------------------------
       [2021/09/29 20:49:43.450] Traceback (most recent call last):
       [2021/09/29 20:49:43.450]   File "/data/mci/82eec36aa0d70b66f3ac7ae240aa37cf/src/test/unified_format.py", line 1152, in test_case
       [2021/09/29 20:49:43.450]     self.run_scenario(spec)
       [2021/09/29 20:49:43.450]   File "/data/mci/82eec36aa0d70b66f3ac7ae240aa37cf/src/test/unified_format.py", line 1133, in run_scenario
       [2021/09/29 20:49:43.450]     self.run_operations(spec['operations'])
       [2021/09/29 20:49:43.450]   File "/data/mci/82eec36aa0d70b66f3ac7ae240aa37cf/src/test/unified_format.py", line 1065, in run_operations
       [2021/09/29 20:49:43.450]     self.run_entity_operation(op)
       [2021/09/29 20:49:43.450]   File "/data/mci/82eec36aa0d70b66f3ac7ae240aa37cf/src/test/unified_format.py", line 934, in run_entity_operation
       [2021/09/29 20:49:43.450]     result = cmd(**dict(arguments))
       [2021/09/29 20:49:43.450]   File "/data/mci/82eec36aa0d70b66f3ac7ae240aa37cf/src/test/unified_format.py", line 838, in _collectionOperation_aggregate
       [2021/09/29 20:49:43.450]     return self.__entityOperation_aggregate(target, *args, **kwargs)
       [2021/09/29 20:49:43.450]   File "/data/mci/82eec36aa0d70b66f3ac7ae240aa37cf/src/test/unified_format.py", line 832, in __entityOperation_aggregate
       [2021/09/29 20:49:43.450]     return list(target.aggregate(*args, **kwargs))
       [2021/09/29 20:49:43.450]   File "/data/mci/82eec36aa0d70b66f3ac7ae240aa37cf/src/pymongo/collection.py", line 1964, in aggregate
       [2021/09/29 20:49:43.450]     return self._aggregate(_CollectionAggregationCommand,
       [2021/09/29 20:49:43.450]   File "/data/mci/82eec36aa0d70b66f3ac7ae240aa37cf/src/pymongo/collection.py", line 1889, in _aggregate
       [2021/09/29 20:49:43.450]     return self.__database.client._retryable_read(
       [2021/09/29 20:49:43.450]   File "/data/mci/82eec36aa0d70b66f3ac7ae240aa37cf/src/pymongo/mongo_client.py", line 1382, in _retryable_read
       [2021/09/29 20:49:43.450]     return func(session, server, sock_info, secondary_ok)
       [2021/09/29 20:49:43.450]   File "/data/mci/82eec36aa0d70b66f3ac7ae240aa37cf/src/pymongo/aggregation.py", line 127, in get_cursor
       [2021/09/29 20:49:43.450]     result = sock_info.command(
       [2021/09/29 20:49:43.450]   File "/data/mci/82eec36aa0d70b66f3ac7ae240aa37cf/src/pymongo/pool.py", line 708, in command
       [2021/09/29 20:49:43.450]     return command(self, dbname, spec, secondary_ok,
       [2021/09/29 20:49:43.450]   File "/data/mci/82eec36aa0d70b66f3ac7ae240aa37cf/src/pymongo/network.py", line 158, in command
       [2021/09/29 20:49:43.450]     helpers._check_command_response(
       [2021/09/29 20:49:43.450]   File "/data/mci/82eec36aa0d70b66f3ac7ae240aa37cf/src/pymongo/helpers.py", line 170, in _check_command_response
       [2021/09/29 20:49:43.450]     raise OperationFailure(errmsg, code, response, max_wire_version)
       [2021/09/29 20:49:43.450] pymongo.errors.OperationFailure: PlanExecutor error during aggregation :: caused by :: failed while running command { internalRenameIfOptionsAndIndexesMatch: 1, from: "crud-v2.tmp.agg_out.6bb1faf3-ec6b-4be4-ba4a-ed98c81447e2", to: "crud-v2.other_test_collection", collectionOptions: {}, indexes: [ { v: 2, key: { _id: 1 }, name: "_id_" } ], writeConcern: { w: "majority", wtimeout: 0, provenance: "implicitDefault" } } :: caused by :: Request sent without attaching database version, full error: {'ok': 0.0, 'errmsg': 'PlanExecutor error during aggregation :: caused by :: failed while running command { internalRenameIfOptionsAndIndexesMatch: 1, from: "crud-v2.tmp.agg_out.6bb1faf3-ec6b-4be4-ba4a-ed98c81447e2", to: "crud-v2.other_test_collection", collectionOptions: {}, indexes: [ { v: 2, key: { _id: 1 }, name: "_id_" } ], writeConcern: { w: "majority", wtimeout: 0, provenance: "implicitDefault" } } :: caused by :: Request sent without attaching database version', 'code': 20, 'codeName': 'IllegalOperation', '$clusterTime': {'clusterTime': Timestamp(1632948175, 146), '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}}, 'operationTime': Timestamp(1632948175, 145)}
      

            Assignee:
            julius.park@mongodb.com Julius Park (Inactive)
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: