Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15117

Bulk write with invalid writeConcern blindly accepted

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.6.4, 2.7.5
    • Component/s: Shell
    • ALL
    • Hide
      • Create a 5 node replica set
      • Issue a bulk write of 1000 documents, with writeConcern of all nodes, i.e.,
        {writeConcern: {w: 5}}
      • Check each node for number of documents
      • See attached jstest for specific steps
      Show
      Create a 5 node replica set Issue a bulk write of 1000 documents, with writeConcern of all nodes, i.e., {writeConcern: {w: 5}} Check each node for number of documents See attached jstest for specific steps

      Issuing a bulk write and specifying a writeConcern of all nodes is not enforced. The number of documents on the secondary nodes is not equal to the primary.

        1. bulk_writeConcern.js
          1 kB
        2. fixed_bulk_writeConcern.js
          1 kB

            Assignee:
            Unassigned Unassigned
            Reporter:
            jonathan.abrahams Jonathan Abrahams
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: