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

Reconnection attempt logic seems wrong in JmsConnector#doInitializeConnection

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.10.2, 5.11.1
    • Fix Version/s: 5.12.0
    • Component/s: Broker
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Flags:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: