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

Add cancelation support to WaitForMajorityService using CancelationTokens

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible
    • Service arch 2020-12-28, Service Arch 2021-03-08, Service Arch 2021-03-22
    • 120
    • 3

      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.

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

              Created:
              Updated:
              Resolved: