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

Validate the numInitialChunks parameter for 'shardcollection' earlier

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 3.3.4
    • Component/s: Sharding
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Sharding 12 (04/01/16)

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: