[DOCS-9533] Docs for SERVER-22841: Add write concern option to not wait for snapshot on majority writes Created: 05/Dec/16  Updated: 27/Oct/23  Resolved: 08/Dec/17

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Emily Hall Assignee: Unassigned
Resolution: Gone away Votes: 0
Labels: delete-docs-tickets
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 6 years, 9 weeks, 5 days ago

 Description   

Engineering Ticket Description:

Once ReadConcernMajority support is enabled snapshots are created periodically. But when WriteConcern.Majority is used, it must wait for a snapshot so that ReadConcern.Majority can then read that write.

There are cases when one might want to do majority writes but not wait for a snapshot – there is no need to read your own writes using ReadConcern.Majority basically.

// example
coll.insert({}, {writeConcern:{w:"majority", waitForSnapshot:false}});



 Comments   
Comment by Kay Kim (Inactive) [ 08/Dec/17 ]

Opened too soon.

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