Bulk write with invalid writeConcern blindly accepted

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Jonathan Abrahams (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: