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

CSRS can accept non { w: 'majority' } writes

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.3.8
    • Component/s: Sharding
    • None
    • Sharding
    • ALL

      if the write command doesn't pass the write concern

      example shell session to CSRS primary to demonstrate:

      test-configRS:PRIMARY> use config
      switched to db config
      test-configRS:PRIMARY> db.user.insert({ x: 1 })
      WriteResult({ "nInserted" : 1 })
      db.user.insert({ x: 2 }, { 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 }"
      	}
      })
      

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: