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

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

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

      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@mongodb.com Haley Connelly
            Reporter:
            haley.connelly@mongodb.com Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: