Move documentsToCopy write-back out of background fetch future

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • ClusterScalability 8Jun-22June
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

        1. Change _fetchAndPersistNumDocumentsToCloneFromDonors to return ExecutorFuture<std::map<ShardId, int64_t>>
        2. Replace _coordinatorDoc accesses inside the future with _metadata for immutable fields (sourceNss, reshardingUUID)
        3. Move updateNumberOfDocsToCopy + _installCoordinatorDoc into _verifyClonedCollection, after joining the future

       

      This aligns with the resharding validtion delta collector pattern.

            Assignee:
            Kruti Shah
            Reporter:
            Kruti Shah
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: