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

Query Settings should forbid setting empty 'allowedIndexes'

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • QE 2024-02-19, QE 2024-03-04, QE 2024-03-18, QE 2024-04-01

      Currently it's legal for a user to specify an empty list as the allowed indexes. As opposed to index filters, query settings consider `$natural` as an index, and leaving this out forbids collection scans outright. 

      As there are no real use-cases for setting an empty allowed indexes list, and this just causes additional re-planning it's been decided to validate against this.

            Assignee:
            serhii.lysenko@mongodb.com Serhii Lysenko
            Reporter:
            catalin.sumanaru@mongodb.com Catalin Sumanaru
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: