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

Check for negative maxChunkSize input value in AutoSplitVector

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.0.2, 6.1.0-rc0, 5.0.13, 4.2.24, 4.4.19
    • 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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: