-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Catalog, Index Maintenance, Sharding
-
None
-
Fully Compatible
-
Sharding 2019-12-02, Sharding 2019-12-16
Make the mongod commands createIndexes, dropIndexes, and collMod start checking shard versions when taking collection locks. These commands should handle the migration critical section in the same way as a write command, i.e. the shard version check should fail if either phase of the critical section is in progress and the thrown stale config error should not be returned to mongos until the critical section is over.