-
Type: Bug
-
Resolution: Done
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: Test Failure
com.mongodb.reactivestreams.client.unified.UnifiedCrudTest > shouldPassAllOutcomes[aggregate-out-readConcern: readConcern available with out stage] FAILED [2021/10/08 20:45:46.616] java.lang.AssertionError: The operation expects no error but an exception occurred [2021/10/08 20:45:46.616] Assertion Context: [2021/10/08 20:45:46.616] Completed Operation Context: [2021/10/08 20:45:46.616] Operation: [2021/10/08 20:45:46.616] { [2021/10/08 20:45:46.616] "object": "collection_readConcern_available", [2021/10/08 20:45:46.616] "name": "aggregate", [2021/10/08 20:45:46.616] "arguments": { [2021/10/08 20:45:46.616] "pipeline": [ [2021/10/08 20:45:46.616] { [2021/10/08 20:45:46.616] "$sort": { [2021/10/08 20:45:46.616] "x": 1 [2021/10/08 20:45:46.616] } [2021/10/08 20:45:46.616] }, [2021/10/08 20:45:46.616] { [2021/10/08 20:45:46.616] "$match": { [2021/10/08 20:45:46.616] "_id": { [2021/10/08 20:45:46.616] "$gt": 1 [2021/10/08 20:45:46.616] } [2021/10/08 20:45:46.616] } [2021/10/08 20:45:46.616] }, [2021/10/08 20:45:46.616] { [2021/10/08 20:45:46.616] "$out": "other_test_collection" [2021/10/08 20:45:46.616] } [2021/10/08 20:45:46.616] ] [2021/10/08 20:45:46.616] } [2021/10/08 20:45:46.616] } [2021/10/08 20:45:46.616] Actual result: [2021/10/08 20:45:46.616] com.mongodb.MongoCommandException: Command failed with error 20 (IllegalOperation): 'PlanExecutor error during aggregation :: caused by :: failed while running command { internalRenameIfOptionsAndIndexesMatch: 1, from: "crud-v2.tmp.agg_out.f356e94e-d6e1-48e0-9f16-9c6f6498368b", 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' on server localhost:27017. The full response is {"ok": 0.0, "errmsg": "PlanExecutor error during aggregation :: caused by :: failed while running command { internalRenameIfOptionsAndIndexesMatch: 1, from: \"crud-v2.tmp.agg_out.f356e94e-d6e1-48e0-9f16-9c6f6498368b\", 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": {"t": 1633725946, "i": 50}}, "signature": {"hash": {"$binary": {"base64": "XT5iQ3hoRX26inTWrEKaZBv66d4=", "subType": "00"}}, "keyId": 7016795329693483017}}, "operationTime": {"$timestamp": {"t": 1633725946, "i": 49}}} [2021/10/08 20:45:46.616] Operation index: 0
- depends on
-
SERVER-59924 Error executing aggregate with $out with "available" read concern on sharded clusters
- Closed