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

Single-phase index builds should only check constraint violations upon completion

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc3, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Execution Team 2020-05-04
    • 21

      Single-phase index builds can encounter a deadlock, or worse crash, if an index build fails concurrently with an abort operation (dropIndexes, dropCollection, etc).

      The deadlock is as follows:

      We should do as two-phase builds do, and only check key constraints upon completion (SERVER-45852). This allows us to abort without releasing locks. This is only possible, however, after SERVER-46989 is complete.

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: