Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-813

Default read preference of primary is superseding slaveOk query option when connected to mongos

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Cluster Management
    • None

    Description

      The driver is setting both the slaveok bit in query options and {$readPreference :

      {"mode" : "primary}

      }, and as of mongos 2.2, the read preference wins and queries are routed to shard primaries.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: