-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
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
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.