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

Mongos incorrectly parses read preference spec with $query syntax

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.4.0-rc1
    • 2.4.0-rc0
    • Sharding
    • None
    • ALL

    Description

      {'$query':

      {test:1}

      , '$readPreference':{mode:'secondary', tags: [

      {dc:'sf',s:"1"}

      ,

      {dc:'ma',s:"2"}

      ]}}

      Fails on 2.2 via mongos due to non-matching tags, returning an error. Returns documents on 2.4.0-rc0-pre.

      Attachments

        Activity

          People

            randolph@mongodb.com Randolph Tan
            christkv Christian Amor Kvalheim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: