[SERVER-43185] write concern accepts malformed documents Created: 05/Sep/19  Updated: 06/Dec/22  Resolved: 02/Mar/20

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

Type: Improvement Priority: Major - P3
Reporter: Judah Schvimer Assignee: Backlog - Replication Team
Resolution: Duplicate Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-12979 Respond with error upon encountering ... Backlog
Related
related to SERVER-12465 write commands accept empty writeConc... Closed
Assigned Teams:
Replication
Participants:

 Description   

We should validate the arguments sent to write concern so that if we add a field to write concern, old servers that don't support that field do not silently ignore it. Applications might assume they're getting durability guarantees they are not getting.
Ex:

> db.test.runCommand({insert : "test", documents : [], writeConcern : { foo : 1} } )



 Comments   
Comment by David Storch [ 02/Mar/20 ]

Closing this ticket as a duplicate of SERVER-12979.

Generated at Thu Feb 08 05:02:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.