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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.12.4, 2.13.0
    • Affects Version/s: None
    • Component/s: Query Operations
    • None

      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.

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

              Created:
              Updated:
              Resolved: