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

Index creation does not enforce type of bucketSize field

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.1, 7.3.0-rc0, 7.0.6, 5.0.25, 6.0.14
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Minor Change
    • ALL
    • v7.2, v7.0, v6.0, v5.0
    • Execution Team 2024-01-08
    • 5

      When running the createIndexes command, if the bucketSize field is provided then it is supposed to be a number. This should be enforced by the index_key_validate::validateIndexSpec function, but it is not. Thus any type can be provided for bucketSize and it will be persisted in the catalog as such.

            Assignee:
            gregory.noma@mongodb.com Gregory Noma
            Reporter:
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: