[SERVER-22841] Add write concern option to not wait for snapshot on majority writes Created: 24/Feb/16  Updated: 06/Dec/22

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

Type: Improvement Priority: Minor - P4
Reporter: Scott Hernandez (Inactive) Assignee: Backlog - Replication Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-22533 Enable ReadConcern.Majority tests wit... Closed
Assigned Teams:
Replication
Backwards Compatibility: Major Change
Participants:

 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}});


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