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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: