[DRIVERS-290] Support sending writeConcern for commands that write Created: 01/Mar/16 Updated: 27/May/22 Resolved: 31/Oct/16 |
|
| Status: | Closed |
| Project: | Drivers |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Emily Stolfo | Assignee: | Barrie Segal |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Server Compat: | 3.3, 3.4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Start date: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Driver Compliance: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
When talking with server 3.4 or greater (maxWireVersion >=5), writeConcern should be a supported option for commands that write. These are commands that newly accept a writeConcern as of 3.4, for which driver helpers should be updated:
Note:When the writeConcern on a command that writes fails, the resulting document still comes back with ok: 1. Hence, to check for write concern and raise the appropriate error to your users, you will need to check the resulting document for a writeConcernError field. If it is present, then writeConcern failed. |
| Comments |
| Comment by Rathi Gnanasekaran [ 31/Oct/16 ] |
|
Resolving ticket as all linked tickets are closed. |
| Comment by A. Jesse Jiryu Davis [ 16/Jun/16 ] |
|
Let's remove a few things from this list that aren't for mortals: godInsert, capTrunc, appendoplognote, mergechunk, emptycapped. |
| Comment by Githook User [ 20/May/16 ] |
|
Author: {u'username': u'estolfo', u'name': u'Emily S', u'email': u'emily@10gen.com'}Message: Merge pull request #86 from estolfo/
|
| Comment by Githook User [ 20/May/16 ] |
|
Author: {u'username': u'estolfo', u'name': u'Emily S', u'email': u'emily@10gen.com'}Message: Merge pull request #86 from estolfo/
|
| Comment by Githook User [ 20/May/16 ] |
|
Author: {u'username': u'estolfo', u'name': u'Emily', u'email': u'emily@mongodb.com'}Message: |
| Comment by Githook User [ 20/May/16 ] |
|
Author: {u'username': u'estolfo', u'name': u'Emily', u'email': u'emily@mongodb.com'}Message: |