-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Replication
-
Fully Compatible
-
Repl 2024-01-08, Repl 2024-01-22, Repl 2024-02-05, Repl 2024-02-19, Repl 2024-03-04
-
120
The WaitForMajorityService was introduced in 4.4 (in SERVER-40785) to allow asynchronously waiting for majority write concern. The service holds a queue of opTimes to wait for and has a background thread that periodically waits for the lowest time.
As of SERVER-43135, the ReplicationCoordinator has a futures based API to wait for write concern internally, so it's possible we can refactor the WaitForMajorityService to use that API. This could simplify the service and likely improve its performance, since the current implementation scales poorly with many requests - see SERVER-79785.
- is duplicated by
-
SERVER-79785 WaitForMajorityService can be a bottleneck for two phase commit transactions
- Closed
- related to
-
SERVER-79785 WaitForMajorityService can be a bottleneck for two phase commit transactions
- Closed