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

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.2.0-rc0
    • 3.2.0-rc1
    • 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)

    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

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

              Dates

                Created:
                Updated:
                Resolved: