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

Validate the numInitialChunks parameter for 'shardcollection' earlier

    • Fully Compatible
    • ALL
    • Sharding 12 (04/01/16)

      ShardCollectionCmd::run relies on Chunk::multiSplit to validate that a chunk is not split into more than 8192 parts as part of a 'shardcollection' command:

          uassert(13333, "can't split a chunk in that many parts", m.size() < maxSplitPoints);
      

      This check should occur earlier to prevent unnecessary work on the mongos process.

            Assignee:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Reporter:
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: