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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • Fully Compatible
    • ALL
    • Hide

      Run the patch attached with all feature flags

      Show
      Run the patch attached with all feature flags
    • Cluster Scalability 2024-2-19, Cluster Scalability 2024-3-4
    • 3

      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.

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

              Created:
              Updated:
              Resolved: