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

Add new lock types RESOURCE_DDL_DATABASE and RESOURCE_DDL_COLLECTION

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Sharding EMEA 2023-05-29, Sharding EMEA 2023-06-12

      Add new LockManager lock types RESOURCE_DDL_DATABASE and RESOURCE_DDL_COLLECTION to be used for the new DDLLockManager.

      Neither of them will be related to the engine lock hierarchy (Global > Database > Collection). However, to avoid deadlocks, none of the engine hierarchy locks has to be held when a RESOURCE_DDL_* lock is being acquired.

      The advantages of having the DDL locks managed by the LockManager are:

      • Enables a multi-granularity lock acquisition. This means that DDL locks could be taken in different modes: S, IS, X or IX.
      • Improves the DDL locking debuggability. The DDL locks will be integrated with the already existing LockManager debug utilities.
      • Code robustness. The LockManager is a relatively old and widely used service with up-and-going maintenance.

            Assignee:
            silvia.surroca@mongodb.com Silvia Surroca
            Reporter:
            silvia.surroca@mongodb.com Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: