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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Querying, Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      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.

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: