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

Bulk write with invalid writeConcern blindly accepted

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.6.4, 2.7.5
    • 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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: