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

CSRS config servers require majority write concern even for local database

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.2.0-rc0
    • Fix Version/s: 3.2.0-rc1
    • Component/s: Sharding
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      1. Bring up a CSRS replica set of config servers
      2. Try to write a document into a collection in the local database with a write concern of w: 1
    • Sprint:
      Sharding B (10/30/15)

      Description

      CSRS config servers require majority write concern even for local database. For example:

      csrs:PRIMARY> use local
      switched to db local
      csrs:PRIMARY> db.foo.insert({}, {writeConcern: { w: 1}})
      WriteResult({
      	"writeError" : {
      		"code" : 2,
      		"errmsg" : "w: 'majority' is the only valid write concern when writing to config server replica sets, got: { w: 1, wtimeout: 0 }"
      	}
      })
      

      Should an exception be made in terms of the required write concern for the local database?

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: