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

Integrate WaitForMajorityService with ReplicationCoordinator

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Replication
    • Repl 2024-01-08, Repl 2024-01-22, Repl 2024-02-05, Repl 2024-02-19

    Description

      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.

      Attachments

        Activity

          People

            scott.li@mongodb.com Scott Li
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: