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

Donor should not be able to start/commit a index build for a tenant at a timestamp >= recipientSyncData cmd's startMigrationDonorTimestamp

    • Fully Compatible
    • Repl 2020-09-07, Repl 2020-10-05, Repl 2020-11-16, Repl 2020-11-30, Repl 2021-01-11, Repl 2021-01-25, Repl 2021-02-08

      1) TenantMigrationDonor::Instance should abort active index builds  for the tenant with abort error code as "ErrorCodes::TenantMigrationInProgress" and wait for those index builds to complete after TenantMigrationDonor::Instance has transitioned to data sync phase and before sending the recipientSyncData cmd to recipient.

      2) Donor trying to start any new index builds for a tenant after the TenantMigrationDonor::Instance has transitioned to data sync phase, should throw an error "ErrorCodes::TenantMigrationInProgress".

      3) Parent thread ("createIndexes") user thread on receiving the error "ErrorCodes::TenantMigrationInProgress" should wait for the tenant migration to complete and the tenant migration decision (abort/commit) to be majority replicated on the donor replica set.

            Assignee:
            matthew.russotto@mongodb.com Matthew Russotto
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: