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

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

    • Fully Compatible
    • Execution Team 2021-05-17, Execution Team 2021-06-14, Execution Team 2021-06-28
    • 136

      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.

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

              Created:
              Updated:
              Resolved: