Check all CSS and DSS entries in checkMetadataConsistency

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 9.0.0-rc0, 9.1.0-rc0
    • Component/s: None
    • Catalog and Routing
    • CAR Team 2026-08-03, CAR Team 2026-08-17
    • 🟥 DDL
    • None
    • None
    • None
    • None
    • None
    • None

      Currently CheckMetadataConsistency only checks CollectionShardingState and DatabaseShardingState entries of namespaces reachable through either the global or the local collection catalogs; other entries are never checked. Therefore we are missing validation that no stale CSS/DSS entries are left.

      For example, after dropping a database, we are missing validation that there are no CSS/DSS entries stating that collections on that database exist.

      Proposal:
      For all shards, and all their replicas, scan all the entries on the CSS and DSS and validate them.

            Assignee:
            Jordi Serra Torrens
            Reporter:
            Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: