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

Trace logging throws exception logging the connection id when open fails

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.1, 3.12.3
    • Affects Version/s: None
    • Component/s: Monitoring
    • Labels:
      None

      When open fails, the driver trace logs a message containing the connectionId.  But DefaultConnectionPool.PooledConnection#getDescription throws if the connection is open. This causes the trace logging statement itself to throw.

      We can fix this by allowing calls to DefaultConnectionPool.PooledConnection#getDescription even when the connection is not open.

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

              Created:
              Updated:
              Resolved: