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

Disallow sparse, hashed indexes from being considered for answering $exists: false queries.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 4.9.0, 4.4.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Query 2020-10-19, Query 2020-11-02, Query 2020-11-16
    • 9

      The index selector currently believes that hashed, sparse indexes can be used to answer {$exists:false} queries. However, sparse indexes cannot be used to answer such queries so this triggers a failure.

      A resolution to this ticket would include:
      1) server changes that disallow sparse hashed indices from being considered to answer such a query
      2) unit tests and javascript tests ensuring that hashed sparse indexes won't be considered to answer {$exists: false} queries

            Assignee:
            james.wahlin@mongodb.com James Wahlin
            Reporter:
            samuel.mercier@mongodb.com Sam Mercier
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: