Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2995

Failing aggregate-out unit test with write concern

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.15.0
    • Affects Version/s: 1.14.0
    • Component/s: libmongoc
    • None
    • Environment:
      AIX/gcc

      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" :

      { "x" : 1 }

      }, { "$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 } }
      }

            Assignee:
            Unassigned Unassigned
            Reporter:
            amygiersch Amy Giersch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: