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

Check for negative maxChunkSize input value in AutoSplitVector

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.24, 4.4.19, 5.0.13, 6.0.2, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v6.0, v5.3, v5.0, v4.4, v4.2
    • Sharding EMEA 2022-07-25, Sharding EMEA 2022-08-08
    • 35

      In AutoSplitVector/SplitVector commands we should check if the maxChunkSize input parameter is negative before to convert the value to MiB (shift left << 20).

      We already tried to fix this in SERVER-62205 but we added the sanity check only after the shift operation, thus we simply need to move the check before the shift operation.

            Assignee:
            paolo.polato@mongodb.com Paolo Polato
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: