runCreateIndexesWithCoordinator does not correctly relock the database

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • v4.2
    • Storage NYC 2019-05-20, Execution Team 2019-06-03, Execution Team 2019-06-17
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      At the beginning of this code in runCreateIndexesWithCoordinator, a collection lock is acquired in MODE_IX using AutoGetCollection. This also locks the database in MODE_IX, but this lock is not yielded before trying to relock the database with MODE_X. This results in a conversion of the database lock instead of a relock, potentially resulting in deadlock.

            Assignee:
            Benety Goh
            Reporter:
            Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: