Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-52769

Create shard key index if doesn't exist as part of creating the temporary resharding collection

    • 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);
      

            Assignee:
            blake.oler@mongodb.com Blake Oler
            Reporter:
            blake.oler@mongodb.com Blake Oler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: