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

`createIndex` may create bucket collection after timeseries is dropped

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 5.0.19, 6.0.15, 7.0.7, 7.3.0-rc5
    • Component/s: None
    • Catalog and Routing
    • ALL
    • CAR Team 2024-04-01, CAR Team 2024-04-15
    • 2

      createIndex may end up creating an "orphaned" bucket collection (with default empty collection options) when executed concurrently with dropCollection.

      1. Create a timeseries collection
      2. Create index starts (translates view ns to bucket ns)
      3. Drop collection starts
      4. Drop collection succeeds
      5. Create index continues (timeseries not existing anymore)
      6. Create index implicitly creates the bucket collection
      7. Create index succeeds

      Reproducible attached (including diff to apply on ae89abf235 to add a failpoint during create index).

      As part of this ticket we should be able to add `createIndex` to create_all_type_collections.js concurrency test

        1. SERVER-87678-patch.diff
          1 kB
          Pierlauro Sciarelli
        2. SERVER-87678-reproducible.js
          2 kB
          Pierlauro Sciarelli

            Assignee:
            Unassigned Unassigned
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: