Fix Authoritative Shards checkMetadataConsistency false positive due to races with setFCV

XMLWordPrintableJSON

    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2026-07-20
    • 200
    • 馃煡 DDL
    • None
    • None
    • None
    • None
    • None
    • None

      In checkMetadataConsistency (checkCollectionMetadataInShardCatalog), we are reading the Authoritative Shards feature flag then validating the durable shard catalog entries without taking into account that the FCV may be concurrently downgraded and the shard will become non-authoritative.

      This can cause checkMetadataConsistency to report a false positive if it runs concurrently to a FCV downgrade (see attached repro).

        1. repro-BF-44429.patch
          3 kB
          Joan Bruguera Mic贸

            Assignee:
            Joan Bruguera Mic贸
            Reporter:
            Joan Bruguera Mic贸
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: