Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-2062

"Aggregate with $merge and majority readConcern" failure

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc0, 3.6.0
    • Affects Version/s: None
    • Component/s: None

      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.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: