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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • 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.

    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

        Activity

          People

            charlie.page@10gen.com Charlie Page
            charlie.page@10gen.com Charlie Page
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: