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

Concurrent drop and create could leave a view without the bucket namespace

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 6.0.0, 5.0.10
    • Component/s: None
    • Storage Execution
    • ALL
    • Hide

      repro-create-drop-timeseries-bug.patch

      Apply the provided patch on top of commit r6.1.0-alpha-1901-g51f0bfb9163 and run jstests/noPassthrough/timeseries_create_drop_concurrent.js in the no_passthrough suite.

      Show
      repro-create-drop-timeseries-bug.patch Apply the provided patch on top of commit r6.1.0-alpha-1901-g51f0bfb9163 and run jstests/noPassthrough/timeseries_create_drop_concurrent.js in the no_passthrough suite.

      The creation of a timeseries collection is achieved through the following two steps:
      1. create the bucket namespace
      2. create the associated view

      If a drop targeting directly the bucket namespace is executed between 1 and 2 we end up with the view but without the bucket namespace. This is possible because the create collection release the locks for the bucket namespace after 1.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: