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

CSRS config servers require majority write concern even for local database

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0-rc1
    • Affects Version/s: 3.2.0-rc0
    • Component/s: Sharding
    • Fully Compatible
    • ALL
      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
    • Sharding B (10/30/15)

      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?

            Assignee:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Reporter:
            tim.olsen@mongodb.com Timothy Olsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: