[
https://issues.apache.org/jira/browse/QPIDJMS-567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17511294#comment-17511294
]
Timothy A. Bish commented on QPIDJMS-567:
-----------------------------------------
The Failover transport is meant to transparently reconnect a client that has
lost connection which is why it does not log warnings on connection attempts
that fail as that is exactly the scenario is was designed to handle. You have
many options to configure the client to attempt re-connections and then fail
the connection with an informative error should you desire both using the
startup max connection attempts and the max reconnection attempts configuration
options. The transport can be configured to log a warn every N connection
attempt to alert you that it has not yet established a new connection (default
is every 10 tries).
> The FailoverProvider does not report the root cause of a connection attempt
> failure
> -----------------------------------------------------------------------------------
>
> Key: QPIDJMS-567
> URL: https://issues.apache.org/jira/browse/QPIDJMS-567
> Project: Qpid JMS
> Issue Type: Wish
> Components: qpid-jms-client
> Reporter: Philippe Haution
> Priority: Major
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> {{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 :
> {quote}catch (Throwable e) {
> LOG.info("Connection attempt:[{}] to: {} failed", reconnectAttempts,
> target.getScheme() + "://" + target.getHost() + ":" +
> target.getPort());
> {quote}
> We should have:
> {quote}catch (Throwable e) {
> LOG.info("Connection attempt:[{}] to: {} failed", reconnectAttempts,
> target.getScheme() + "://" + target.getHost() + ":" +
> target.getPort(), e);
> {quote}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]