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

XMLWordPrintableJSON

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

      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:
              [DO NOT USE] Backlog - Sharding Team
              Reporter:
              Randolph Tan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: