[SERVER-74611] Have WaitForMajorityService provide a method for waiting for reads Created: 03/Mar/23  Updated: 29/Oct/23  Resolved: 13/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Matthew Russotto Assignee: Matthew Russotto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Gantt Dependency
has to be done before SERVER-74555 Re-introduce majority commit point ad... Closed
has to be done before SERVER-74754 Clean up uses of WaitForMajorityServi... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2023-03-06, Repl 2023-03-20
Participants:

 Description   

The current WaitForMajorityService is waiting for a majority write concern, not a majority read concern. This only works on primaries and returns an error on step down. For some tasks we actually want to wait on read concern instead, and it make sense for these to be provided by the same service.



 Comments   
Comment by Githook User [ 11/Mar/23 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}

Message: SERVER-74611 Create a read concern majority service to complement write concern majority service.
Branch: master
https://github.com/mongodb/mongo/commit/45e7d2fef59284c1f34ff425de4ee09fcd24301a

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