[SERVER-24737] CSRS can accept non { w: 'majority' } writes Created: 22/Jun/16  Updated: 06/Dec/22  Resolved: 22/Jun/16

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.3.8
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: [DO NOT USE] Backlog - Sharding Team
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-24738 Config servers incorrectly allow w:1 ... Closed
Assigned Teams:
Sharding
Operating System: ALL
Participants:

 Description   

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 }"
	}
})


Generated at Thu Feb 08 04:07:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.