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

Clean up uses of WaitForMajorityService::waitForMajority

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Fully Compatible
    • Repl 2023-09-04, Repl 2023-09-18

      Prior to SERVER-74611 it wasn't clear whether WaitForMajorityService was waiting for write concern majority (wait for an optime to be made durable on the current primary and a majority of the set, assert on stepdown) or read concern majority (wait for an optime to make it into the majority committed snapshot, regardless of stepdowns). It was in fact write concern majority. SERVER-74611 adds a call to do the same for read concern majority called waitForMajorityForRead. This ticket is to replace old uses of waitForMajority with the new (identical) call waitForMajorityForWrite and remove waitForMajority.

            Assignee:
            evelyn.wu@mongodb.com Evelyn Wu
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: