[SERVER-52769] Create shard key index if doesn't exist as part of creating the temporary resharding collection Created: 11/Nov/20  Updated: 29/Oct/23  Resolved: 09/Dec/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Task Priority: Major - P3
Reporter: Blake Oler Assignee: Blake Oler
Resolution: Fixed Votes: 0
Labels: PM-234-M2, PM-234-T-lifecycle
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2020-12-14
Participants:
Story Points: 1

 Description   

This would be mimicking the logic shardCollection has to implicitly create a new index if no suitable index for the shard key pattern is found in resharding_recipient_service.cpp. createTemporaryReshardingCollectionLocally() currently only builds the same set of indexes the MinKey-chunk owning donor shard has.

CollectionOptionsAndIndexes optionsAndIndexes = {reshardingUUID, indexes, idIndex, collOptions};
MigrationDestinationManager::cloneCollectionIndexesAndOptions(
    opCtx, reshardingNss, optionsAndIndexes);



 Comments   
Comment by Githook User [ 09/Dec/20 ]

Author:

{'name': 'Blake Oler', 'email': 'blake.oler@mongodb.com', 'username': 'BlakeIsBlake'}

Message: SERVER-52769 Create shard key index if doesn't exist as part of creating the temporary resharding collection
Branch: master
https://github.com/mongodb/mongo/commit/787c8c087f2c97d482cd215bf20fa8d72f8404da

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