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

Add cancelation support to WaitForMajorityService using CancelationTokens

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • Internal Code
    • None
    • Fully Compatible
    • Service arch 2020-12-28, Service Arch 2021-03-08, Service Arch 2021-03-22
    • 120
    • 3

    Description

      waitUntilMajority should accept a CancelationToken. When the token is canceled, it should remove the appropriate OpTime from this map and the request's future must be signalled, but only if this was the only request pointing to that OpTime. This may require us to change from using SharedPromise to instead use something like a multimap with multiple promises/futures per OpTime.

      Attachments

        Activity

          People

            george.wangensteen@mongodb.com George Wangensteen
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: