Disallow introduction of new usages of AutoGetDb/Collection* in the query module

XMLWordPrintableJSON

    • Catalog and Routing
    • Fully Compatible
    • Sharding EMEA 2023-10-02, CAR Team 2025-09-29
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      With the introduction of the Shard Role API under PM-2144 all new query code which accesses data from the storage engine must go through one of the acquireCollection variants, which enforce a much stricter contract between the sharding catalog, local catalog and storage engine data.

      In order to converge towards the new API we want to disallow the introduction of any new usages of AutoGetDb/Collection and its friends.

      This ticket is to move all the variants of the AutoGetDb/Collection API to some internal-sounding namespace (such as collection_internal::) and add a clang-tidy rule to prevent any new usages.

            Assignee:
            Jordi Serra Torrens
            Reporter:
            Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: