Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-5859

Reconnection attempt logic seems wrong in JmsConnector#doInitializeConnection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 5.10.2, 5.11.1
    • 5.12.0
    • Broker
    • None
    • Patch Available
    • Patch

    Description

      the reconnection attempts logic based on the reconnection policy seems wrong.

      In JmsConnector#doInitializeConnection the loop trying to reconnect to the foreign broker only execute once due to the erroneous test in the while

      while (maxRetries < ++attempt && !connectionSerivce.isTerminating());
      

      should be

      while (maxRetries > ++attempt && !connectionSerivce.isTerminating());
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              benoitw Benoit Wiart
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: