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

Improve logging of socket errors

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.11.0
    • Affects Version/s: None
    • Component/s: Monitoring
    • None
    • Minor Change

      A number of improvements to log messages around socket errors:

      1. When autoConnectRetry is true, change retry message from severe to warning and text to:

         _logger.log(Level.WARNING, "Exception connecting to " +
                     serverAddress().getHost() + ": " + e +
                     ".  Total wait time so far is " + waitSoFar + 
                     " ms.  Will retry after sleeping for " + sleepTime + " ms.");
      

      2. Change "can't say something" error message to:

      "Write operation to server " + port.host() + " failed ..."

      3. Change "can't call something" error message to:

      "Read operation to server " + port.host() + " failed ..."

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

              Created:
              Updated:
              Resolved: