Uploaded image for project: 'Qpid JMS'
  1. Qpid JMS
  2. QPIDJMS-567

The FailoverProvider does not report the root cause of a connection attempt failure

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Information Provided
    • None
    • None
    • qpid-jms-client
    • 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);

      Attachments

        Activity

          People

            Unassigned Unassigned
            hautionp Philippe Haution
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified