plan cache filters aren't applied if mongoS rewrites the projection of a query

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying, Sharding
    • None
    • Fully Compatible
    • ALL
    • Hide

      See attached js, should not succeed if filters are used on mongoS.

      Show
      See attached js, should not succeed if filters are used on mongoS.
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If mongoS changes the projection on a query, then the filters aren't applied to the query at all (mongoD runs the normal ranking process).

      The expected behavior would be either:

      1. Apply the filters as mongoD without the modified project (easier for users to understand)
      2. Apply the filters to query as given to mongoD from mongoS

              Assignee:
              Charlie Page (Inactive)
              Reporter:
              Charlie Page (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: