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

XMLWordPrintableJSON

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

      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
            Reporter:
            Ratika Gandhi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: