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

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.3.0
    • None
    • 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

    Description

      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.

      Attachments

        Activity

          People

            haley.connelly@mongodb.com Haley Connelly
            haley.connelly@mongodb.com Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: