TenantMigrationDonorService::getDurableState should return a future

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Matt Broadstone
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: