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

Remove bucketSize option from 2d index in geo_full.js

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 4.7.0
    • 4.1.9
    • None
    • None
    • Fully Compatible
    • Execution Team 2020-06-01, Execution Team 2020-06-15

    Description

      There are two issues with how we parse and validate index specs:
      1. Each type of index (b-tree, text, etc.) is responsible for parsing its own options here, but we create the SortedDataInterface immediately beforehand. This stores the user-provided index spec in the catalog, and at some points does string parsing on that metadata. If the strings passed to the SDI are invalid, this can lead to undefined behavior or even crashes.
      2. It's possible to pass unrecognized options to an index type (ex: pass 'bucketSize' to a text index), and that may still get persisted in the storage engine. This may also introduce a crash or undefined behavior.

      Attachments

        Activity

          People

            gregory.noma@mongodb.com Gregory Noma
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: