Unit test /crud/read/aggregate-out fails when a write concern is in the connection string for the 2nd test with batchSize = 0. Since batchSize = 0 get back a cursor after the aggregate command, a getMore is sent and getMore contains the write concern.
Looks like this will be fixed by the changes for CDRIVER-2939 as that will no longer send batchSize = 0.
"results": [
Expected success, got error "Command does not support writeConcern":
{ "name" : "aggregate", "arguments" : { "pipeline" : [ { "$sort" :
}, { "$match" : { "_id" :
{ "$gt" : 1 } } }, { "$out" : "other_test_collection" } ], "batchSize" : 0 } }
{ "status": "fail", "test_file": "/crud/read/aggregate-out", "seed": "1278059495", "start": 4126.506109, "end": 4127.022308, "elapsed": 0.516199 }
]
Command getMore started:
{ "getMore" : 5371882048943694072, "collection" : "test", "writeConcern" : \{ "w" : "majority", "j" : true }, "$db" : "test", "lsid" : { "id" : { "$binary" :
{ "base64": "sAS3DPNiTS6ApKYrrupusQ==", "subType" : "04" }} }, "$clusterTime" : { "clusterTime" : { "$timestamp" :
{ "t" : 1551826988, "i" : 16 }}, "signature" : { "hash" : { "$binary" :
{ "base64": "AAAAAAAAAAAAAAAAAAAAAAAAAAA=", "subType" : "00" } }, "keyId" : 0 } }
}
- is related to
-
CDRIVER-2939 Drivers should ignore batchSize=0 for aggregate with $out
- Closed