Support using clusterKey {_id : 1} for shardKey in a sharded collection

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Execution Team 2021-11-01, Execution Team 2021-11-15, Execution Team 2021-11-29, Execution Team 2021-12-13, Execution Team 2021-12-27
    • 2
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      This ticket should enable shardCollection() on an existing clustered collection's cluster key to succeed.

      Proposed solution details:
      All shardKey validation through the CreateCollectionCoordinator must be modified to consider clusteredIndex options whenever present. The options taken from listCollections will be used to construct the clustered collection on participant shards.

            Assignee:
            Haley Connelly
            Reporter:
            Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: