[CXX-2062] "Aggregate with $merge and majority readConcern" failure Created: 29/Jun/20  Updated: 28/Oct/23  Resolved: 08/Jul/20

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 3.6.0-rc0, 3.6.0

Type: Task Priority: Major - P3
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: flaky-tests
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Observed here:

https://evergreen.mongodb.com/task/cxx_driver_ubuntu1604_release_compile_and_test_with_shared_libs_replica_set_patch_7dd84d2b5e6cf03992e95b287c2c5c592051816d_5efa2af057e85a1fafc19fc6_20_06_29_17_54_57

 
With logs:

[2020/06/29 18:06:47.523]   Test path: /data/mci/0301e2be9f12986bcb452a984b8594ad/mongo-cxx-driver/build/
[2020/06/29 18:06:47.523]   ../data/crud/v2/aggregate-merge.json
[2020/06/29 18:06:47.523]   Test description: Aggregate with $merge and majority readConcern
[2020/06/29 18:06:47.523]   Operation: { "object" : "collection", "name" : "aggregate",
[2020/06/29 18:06:47.523]   "collectionOptions" : { "readConcern" : { "level" : "majority" } },
[2020/06/29 18:06:47.523]   "arguments" : { "pipeline" : [ { "$sort" : { "x" : 1 } }, { "$match" : {
[2020/06/29 18:06:47.523]   "_id" : { "$gt" : 1 } } }, { "$merge" : { "into" : "other_test_collection" }
[2020/06/29 18:06:47.523]   } ] } }
[2020/06/29 18:06:47.523]   Had more expected documents than we found.
[2020/06/29 18:06:47.524] ===============================================================================

I believe this is because the test is inserting the setup "data" with default write concern instead of write concern majority. libmongoc inserts with write concern majority. The transactions test runner readme says to insert with write concern majority.



 Comments   
Comment by Githook User [ 07/Jul/20 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CXX-2062 Insert test data with wc:majority
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/1ba5873951aae7c1cd3a2ed6d62a617dca6b3818

Comment by Kevin Albertson [ 30/Jun/20 ]

PR: https://github.com/mongodb/mongo-cxx-driver/pull/680

Generated at Wed Feb 07 22:04:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.