Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-79881

Integrate WaitForMajorityService with ReplicationCoordinator

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: