Details
-
Wish
-
Status: Closed
-
Major
-
Resolution: Information Provided
-
None
-
None
-
None
Description
In the FailoverProvider.triggerReconnectionAttempt() method, in case the connection attempt fails, we end up in a catch block where the Throwable that explains the problem is not logged to the user.
Instead of :
catch (Throwable e) {
LOG.info("Connection attempt:[{}] to: {} failed", reconnectAttempts,
target.getScheme() + "://" + target.getHost() + ":" + target.getPort());
We should have:
catch (Throwable e) {
LOG.info("Connection attempt:[{}] to: {} failed", reconnectAttempts,
target.getScheme() + "://" + target.getHost() + ":" + target.getPort(), e);