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

Async server selection can take up to heartbeat frequency even when server becomes available sooner

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.11.1
    • Affects Version/s: None
    • Component/s: Async, Cluster Management
    • Labels:
      None

      There is a logic error in BaseCluster#selectServerAsync implementation. If the WaitQueueHandler is about to or already awaiting the next phase with the full heartbeat frequency timeout (default of 10 seconds) and a new request arrive to select a currently unavailable server, the wait queue handler is not notified, and therefore won't wake immediately to try to force a connection to the requested server.

            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: