Take the collection DDL lock on metadataConsistency command running on collection level

XMLWordPrintableJSON

    • Sharding EMEA
    • Fully Compatible
    • Sharding EMEA 2023-08-21, Sharding EMEA 2023-09-04, Sharding EMEA 2023-09-18, Sharding EMEA 2023-10-02, Sharding EMEA 2023-10-16
    • 1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, the metadataConsistency command is always acquiring the database DDL lock in S mode.

      However, when the metadataConsistency command is running on the collection level, it would be better to take the database collection lock in IS mode and the collection DDL lock in S mode. With that improvement, we avoid blocking any DDL operation running over a collection that shares the same database that the collection we are running the metadataConsistency command on.

              Assignee:
              Silvia Surroca
              Reporter:
              Silvia Surroca
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: