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

moveCollection should be able to move a collection with unique indexes on unsplittable collections

    XMLWordPrintableJSON

Details

    • ALL
    • Hide

      Run the patch attached with all feature flags

      Show
      Run the patch attached with all feature flags
    • 3

    Description

      Unsplittable collections by definition are tracked collections with only one chunk. The internal representation in config.collections requires a 'shard key', however, considering that in order to shard it the shardCollection command must be called, they can be treated as collections with all the data on the same shard, so, any unique index created for the collection, can be preserved even if the collection is moved. This means that the uniqueness constraint validation executed by resharding (which is the machinery used by moveCollection) it should not apply for unsplittable collections.

      Attachments

        Activity

          People

            kshitij.gupta@mongodb.com Kshitij Gupta
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: