Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-87231

Catalog drop collection command should not translate timeseries namespaces if no timeseries options are present

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 5.0.0, 6.0.0, 7.0.0, 7.3.0-rc0, 7.2.0, 8.0.0-rc2
    • Component/s: None
    • Catalog and Routing
    • v8.0
    • CAR Team 2024-03-18, CAR Team 2024-04-15, CAR Team 2024-04-29, CAR Team 2024-05-13
    • 140
    • 2

      As part of the drop collection coordinator, dropCollectionLocally is called on each shard. This command calls the catalog dropCollection command which translates all bucket namespaces to their view namespaces. This is done regardless of whether there are actually any timeseries options present for the collection. This means that if I create a bucket namespace (without timeseries options) and then call drop for the view namespace, it will drop my bucket namespace.

      This is additionally a problem when we start tracking unsharded collections. In the linked BF, we can see how the translation being done at this level but not at the coordinator level can cause catalog inconsistencies.

        1. repro_before_TU.js
          0.6 kB
          Allison Easton
        2. repro_catalog_inconsistency.js
          0.6 kB
          Allison Easton

            Assignee:
            silvia.surroca@mongodb.com Silvia Surroca
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: