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

ContinuousTenantMigration doesn't handle donor aborting migration due to ShutdownInProgress or InterruptedAtShutdown

    • Fully Compatible
    • ALL
    • v4.9
    • Sharding 2021-05-03, Sharding 2021-05-17

      While enabling the tenant migration terminate primary suites, I ran into the following scenario:
      1. ContinuousTenantMigration starts tenant migration X on donor primary
      2. ContinuousStepdown terminates donor primary
      3. Donor primary shuts down and interrupts migration X with ShutdownInProgress
      4. New primary steps up and rebuilds TenantMigrationDonorService
      5. New primary says tenant migration has completed because it was aborted due to ShutdownInProgress
      6. ContinuousTenantMigration raises an error since this isn't an accepted abort reason.

      If this is expected behavior on the donor, then the ContinuousTenantMigration hook should catch ShutdownInProgress and InterruptedAtShutdown donor abort errors.

            jack.mulrow@mongodb.com Jack Mulrow
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            0 Vote for this issue
            4 Start watching this issue