Authoritative DropCollection and DropDatabase should not leave config.cache collections

XMLWordPrintableJSON

    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2026-07-06
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The authoritative DropCollection and DropDatabase DDL commands do not clean up config.cache.collections and config.cache.chunks.* entries, unlike their non-authoritative counterparts. This is intentional, as the authoritative CRUD path does not use these collections, so they are not expected to exist after a drop.

      However, since not all DDLs are authoritative yet, the non-authoritative CRUD recovery path may still recreate these collections, leaving stale entries that the authoritative drop commands never clean up. This forces jstests/sharding/drop_collection.js to skip cached metadata validation when ShardAuthoritativeCollMetadata is enabled.

      Once all DDLs are fully authoritative, remove the conditional escape in jstests/sharding/drop_collection.js.

       

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

              Created:
              Updated:
              Resolved: