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

Make TenantMigrationAccessBlockerByPrefix include '_' when doing lookup

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • Sharding 2020-09-21

    Description

      Each database stored on Altas shared tier is assigned a database name of the form [tenantId]_[originalDatabaseName]. To make sure that the database prefix for a tenant migration always corresponds to a tenant id, we should include "_" in this check in TenantMigrationAccessBlockerByPrefix::getTenantMigrationAccessBlocker (i.e.  change it to dbName.startsWith(dbPrefix + "_")). 

      Each existing jstest for tenant migrations that runs donorStartMigration with 'databasePrefix' equals to the name of the database that it intends to migrate will need to be updated. 

      Attachments

        Activity

          People

            jason.zhang@mongodb.com Jason Zhang
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: