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

Improve the error message if resharding fails to start due to lack of cardinality in the shard key

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability

      Resharding fails with the error message of "The shard key provided does not have enough cardinality to make the required number of chunks of 90, it can only make 1 chunks" if the shard key doesn't have enough cardinality to make the default number of chunks which is 90 due to SERVER-92762.
      Improve this error message to include remediation.

      The shard key provided does not have enough cardinality to make the required number of chunks of 90, it can only make 1 chunks. If this is intended, reduce the numInitialChunks parameter in reshardCollection command to 1, and retry.
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            ratika.gandhi@mongodb.com Ratika Gandhi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: