Integrate WaitForMajorityService with ReplicationCoordinator

XMLWordPrintableJSON

    • 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: