[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: |