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

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

      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

        1. filterfailure.js
          2 kB
          Charlie Page

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

              Created:
              Updated:
              Resolved: