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

Even when using db.requestStart/requestEnd, unpin member when read preference changes

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.0.0
    • 2.9.3
    • Connection Management
    • None

    Description

      When the driver pins a thread to a socket using DB.requestStart(), it should remember the read preference used for the first read. If a subsequent read has a different read preference, unpin the member and start the member-selection process from scratch and rebind the thread to a different socket.

      Currently, the driver ignores changes to read preference on queries performed within DB.requestStart/requestEnd boundaries.

      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: