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.
- is related to
-
SERVER-51320 Investigate removing <dbname>.system.views CollectionLocks from the ViewCatalog functions
- Closed