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

"Aggregate with $merge and majority readConcern" failure

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0-rc0, 3.6.0
    • Component/s: None
    • Labels:

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: