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

IndexBuilder should always re-lock the database when exceptions are thrown

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.8
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Storage NYC 2019-01-28
    • 31

    Description

      The IndexBuilder catches exceptions, but if the database isn't locked in MODE_X, instead of exiting and reporting the error, this invariant fails in the IndexBuildBlock.

      The IndexBuilder should use a ScopeGuard to relock the database on exit so that the destructor of the MultiIndexBlock is never called without the appropriate lock.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: