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

ViewCatalog should grab mutex after locking the collection

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.12
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • Storage NYC 2019-05-06, Storage NYC 2019-05-20
    • 9

      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.

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

              Created:
              Updated:
              Resolved: