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

TenantMigrationDonorService::getDurableState should return a future

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Server Serverless 2021-11-15, Server Serverless 2021-11-29

      This method has a side-effect of waiting for the fulfillment of a promise indicating the state document has been inserted and majority-committed. This pollutes the TMDS API by requiring an opCtx be passed in rather than letting the caller decide where to block on the future. We should consider returning a Future<DurableState> instead.

            Assignee:
            didier.nadeau@mongodb.com Didier Nadeau
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: