Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-8927

shardCollection should warn if numInitialChunks is used with non-hashed sharded key

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • None
    • Server
    • None

    Description

      Currently if a user shards a collection and includes numInitialChunks without a hashed shard key, everything will succeed but the initial chunks value will be ignored. The user in this case could be rightly confused as to what has happened, and reviewing the logs will only indicate that "numChunks : 1".

      Suggest a warning be given that numInitialChunks is being ignored in these cases

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            emily.hall Emily Hall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6 years, 30 weeks ago