Create a clang-tidy rule for CollectionShardingRuntime not being used outside DDLs or ShardingRecoveryServices

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • CAR Team 2025-09-29
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      Before SERVER-109078, there was a clang-tidy rule ensuring that no usage of CollectionShardingRuntime appeared outside mongo/db/s. During that work, it was decided to remove the check, with the intention of reintroducing it in a new ticket.

      The idea is to pursue one of the following two options:

      • Reintroduce the clang-tidy rule for CollectionShardingRuntime, updating it with the new paths (mongo/db/local_catalog, mongo/db/global_catalog, etc).
      • Use the modularization work to mark the sharding runtime implementations (DatabaseShardingRuntime and CollectionShardingRuntime) as private, and explicitly declare which modules are permitted to use them.

            Assignee:
            Pol Pinol
            Reporter:
            Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: