ViewCatalog should grab mutex after locking the collection

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Xiangyu Yao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: