-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
Sharding 2020-12-14
-
1
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);