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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0
    • Affects Version/s: 2.9.3
    • Component/s: Connection Management
    • None

      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.

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

              Created:
              Updated:
              Resolved: