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

ViewCatalog should grab mutex after locking the collection

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.12
    • None
    • Storage
    • None
    • Fully Compatible
    • ALL
    • Storage NYC 2019-05-06, Storage NYC 2019-05-20
    • 9

    Description

      Currently, ViewCatalog holds its own mutex while reloading from durable view catalog. Reloading from durable view catalog takes a collection lock in IS mode on "db.system.views".

      Holding a mutex while doing db/collection locking may cause deadlock (see linked BF). We should either switch the order or release the mutex before locking and introduce new mutex if necessary.

      Attachments

        Activity

          People

            xiangyu.yao@mongodb.com Xiangyu Yao (Inactive)
            xiangyu.yao@mongodb.com Xiangyu Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: