Skip to content

Commit

Permalink
Added logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Wei Zhang committed Dec 8, 2021
1 parent 02885c6 commit bb3fd76
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3219,6 +3219,9 @@ private InetSocketAddress connectHelper(ServerPortPlaceHolder serverInfo, int ti
} catch (InternalError e) {
// Java's NativeSeedGenerator can sometimes fail on getSeedBytes(). Exact reason is unknown but high system
// load seems to contribute to likelihood. Retry once to mitigate.
if (connectionlogger.isLoggable(Level.WARNING)) {
connectionlogger.warning(toString() + " Generating a random UUID has failed due to : " + e.getMessage() + "Retrying once.");
}
clientConnectionId = UUID.randomUUID();
}

Expand Down

0 comments on commit bb3fd76

Please sign in to comment.