- Explicitly documenting that missing 'w' field from write concern object will be filled with default write concern.
- 'w' field is not optional while setting default write concern using setDefaultRWConcern command
Description of Linked Ticket
Sending wtimeout:x without specifying w value causes the server to use w:1, wtimeout:x instead of combining wtimeout with server default (which should be majority in 5.0+).
Reproduced with Java driver and mongo shell against 6.0. In the logs it indicates it received only wtimeout:xxx for writeConcern but it indicates it uses w:1 with passed wtimeout and claims it's provided by client.
- backported by
-
DOCS-16585 [BACKPORT] [v7.2] server default writeConcern is not honored when wtimeout is set
- Closed
- documents
-
SERVER-80363 server default writeConcern is not honored when wtimeout is set
- Closed
- is related to
-
DOCS-16526 [BACKPORT] [v7.0] server default writeConcern is not honored when wtimeout is set
- Closed