[SERVER-44719] Make createIndexes, dropIndexes, and collMod check shard versions Created: 18/Nov/19  Updated: 29/Oct/23  Resolved: 06/Dec/19

Status: Closed
Project: Core Server
Component/s: Catalog, Index Maintenance, Sharding
Affects Version/s: None
Fix Version/s: 4.3.3

Type: Task Priority: Major - P3
Reporter: Jack Mulrow Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2019-12-02, Sharding 2019-12-16
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 06/Dec/19 ]

Author:

{'email': 'cheahuychou.mao@mongodb.com', 'name': 'Cheahuychou Mao', 'username': 'cheahuychou'}

Message: SERVER-44719 Make createIndexes, dropIndexes, and collMod check shard versions
Branch: master
https://github.com/mongodb/mongo/commit/eba76c558b3e7d784c146b51ced16d48b1d0efe7

Generated at Thu Feb 08 05:06:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.