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

Release the DB X lock in createIndexes after creating the collection/database

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Storage Execution
    • ALL

      First we take the DB lock in MODE_IX, then if the collection doesn't exist yet, we relock the DB in MODE_X in case we need to create the database as well for collection creation. However, we never relock the DB in MODE_IX after the collection is created. We end up holding the MODE_X for the duration of the createIndexes cmd in this scenario. Need to change it to relock in MODE_IX afterwards in both the runCreateIndexes function runCreateIndexesWithCoordinator function.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: