Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
-
None
-
Sharding
-
ALL
-
Sharding 18 (08/05/16)
Description
SERVER-20891 tried to enforce that all writes to the config server use w:majority write concern. It, however, neglects to check the case where no write concern is specified at all. Thus you get the following behavior when writing to a config server:
> db.foo.insert({a:1}, {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 }"
|
}
|
})
|
> db.foo.insert({a:1})
|
WriteResult({ "nInserted" : 1 })
|
Attachments
Issue Links
- is duplicated by
-
SERVER-24737 CSRS can accept non { w: 'majority' } writes
-
- Closed
-
- is related to
-
SERVER-25894 _configsvrAddShard needs to be run with w:majority write concern
-
- Closed
-
-
SERVER-25778 Provide a generic mechanism for commands to enforce that they must be run with w:majority write concern
-
- Backlog
-
- related to
-
SERVER-20891 User-initiated writes to the config server must use w:majority write concern
-
- Closed
-
-
SERVER-20577 Shell should default to read concern majority if connected to a config server replica set
-
- Closed
-