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

Acquire config.system.indexBuilds lock earlier and with collection lock

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.1.0-rc0
    • Index Maintenance
    • Fully Compatible
    • Execution Team 2021-05-17, Execution Team 2021-06-14, Execution Team 2021-06-28
    • 136

    Description

      We push down "config.system.indexBuilds" lock acquisition to a low-level helper. This means that in the index build abort critical section, if our operation has been interrupted, the lock acquisition to remove the index build entry can fail.

      The current solution to prevent a crash is an UninterruptibleLockGuard, which is not ideal. Though we will not try to take an X lock, which could be problematic, we should just make the caller responsible for lock acquisition.

      Attachments

        Issue Links

          Activity

            People

              benety.goh@mongodb.com Benety Goh
              louis.williams@mongodb.com Louis Williams
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: