[SERVER-58669] createIndexes, dropIndexes, and collMod may still fail with ReshardCollectionInProgress after resharding operation completes Created: 19/Jul/21 Updated: 29/Oct/23 Resolved: 26/Jul/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 5.0.0 |
| Fix Version/s: | 5.0.3, 5.1.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Max Hirschhorn | Assignee: | Janna Golden |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | PM-234-M3, PM-234-T-lifecycle | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Backport Requested: |
v5.0
|
||||
| Sprint: | Sharding 2021-07-26, Sharding 2021-08-09 | ||||
| Participants: | |||||
| Story Points: | 1 | ||||
| Description |
|
CollectionMetadata::throwIfReshardingInProgress() throws if the collection metadata has "reshardingFields" present. This is problematic because recipient shards are not guaranteed to learn of when the "reshardingFields" are removed has been the config.collections entry. The changes from 184a553 as part of
We should instead make it permissible to run the createIndexes, dropIndexes, and collMod command when the coordinator state is CoordinatorStateEnum::kAborting or CoordinatorStateEnum::kCommitting. The critical section will take care of ensuring the commands happen on the correct side of the rename for the temporary resharding collection. |
| Comments |
| Comment by Vivian Ge (Inactive) [ 06/Oct/21 ] |
|
Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you! |
| Comment by Githook User [ 17/Aug/21 ] |
|
Author: {'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}Message: (cherry picked from commit a1e57d2985b672c898431b7787e53c547bbd2753)
(cherry picked from commit 8179692b362d8237f201719946eb46bac6a5e961) |
| Comment by Githook User [ 26/Jul/21 ] |
|
Author: {'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}Message: |