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

Implement donorForgetMigration command

    • Fully Compatible
    • Sharding 2020-08-24, Sharding 2020-09-21

      donorForgetMigration just needs to ensure the migration-related state on the donor and recipient get cleaned up (Cloud will delete the data from the donor or recipient as needed).

      Once the donor's logic is in a future chain, TenantMigrationDonor can have a "_receivedDonorForgetMigration" promise that it waits on once it finishes coordinating the migration.

      The donorForgetMigration command can set this promise by, e.g., looking up the TenantMigrationDonor if one exists and calling TenantMigrationDonor::receivedDonorForgetMigration, which emplaces the promise.

      The donor can then proceed with the rest of the chain, which should just be one step to update its state machine doc to mark it as garbage collectable by the TTL index.

            Assignee:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: