MigrationDestinationManager: fix isFirstMigration for authoritative catalogs

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2026-06-22
    • 200
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      The current implementation of isFirstMigration() assumes that, for non-owning shards, the catalog will have a CollectionMetadata that will return currentShardHasAnyChunks() = false. In the authoritative model, this is only true if the shard is the DB primary shard, but all other shards will have a null CollectionMetadata.

            Assignee:
            Aitor Esteve Alvarado
            Reporter:
            Aitor Esteve Alvarado
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: