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

Prefer connectionId from isMaster response to connectionid from getLastError response

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.11.0
    • Component/s: Connection Management
    • Labels:
      None

      Description

      The Java driver currently executes the getLastError command as part of the server handshake, in order to get the connectionId from its response. This is useful for logging and monitoring connection use and correlating with server log files. As of 4.2, the server will return the connectionId in the isMaster response, which the driver has to execute anyway on every connection. If the driver detects a connectionId in the isMaster response, it should just use it and not execute getLastError.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: