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

Express path can return incorrect results when scanning a unique, multi-field index

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 8.1.0-rc0, 8.0.0
    • None
    • Query Execution
    • ALL

      I was looking at the eligibility checks for PlanExecutorExpress and noticed a bug. The express path should only support shard filtering for unique, single-field indexes (see SERVER-87016). This guarantees that the plan only reads a single key, which the shard filter may or may not filter out.

      However, I believe there is a bug where the express path would permit using a unique, multi-field index. Depending on the presence of orphans, this could lead to a situation where we produce incorrect query results

            Assignee:
            colin.stolley@mongodb.com Colin Stolley
            Reporter:
            hana.pearlman@mongodb.com Hana Pearlman
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: