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

ConfigureCollectionAutoSplit should check maxChunkSize in MB

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding EMEA 2022-02-07
    • 175

      TheĀ current check for max chunk size being within required bounds of 1MB to 1GB occurs after converting the max chunk size from the user to bytes from mb. This can cause an overflow without a proper error message if the user tries to input the max chunk size in bytes and ends up well beyond the limit of the command. We should check the bounds without the possibility of overflowing the int if the user input an invalid value.

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: