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

findOne overload that takes only the value of the _id field does not apply read preference to mongos properly

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.12.4, 2.13.0
    • None
    • Query Operations
    • None

    Description

      DBCollection.findOne has an overload that takes just the value of the _id field and turns it into a regular query. But the code path that it takes does not apply the read preference properly when connected to a mongos.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: