You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Benoit Wiart (JIRA)" <ji...@apache.org> on 2015/06/23 20:24:01 UTC

[jira] [Updated] (AMQ-5859) Reconnection attempt logic seems wrong in JmsConnector#doInitializeConnection

     [ https://issues.apache.org/jira/browse/AMQ-5859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benoit Wiart updated AMQ-5859:
------------------------------
    Patch Info: Patch Available
         Flags: Patch

patch from branch 5.10.X

> Reconnection attempt logic seems wrong in JmsConnector#doInitializeConnection
> -----------------------------------------------------------------------------
>
>                 Key: AMQ-5859
>                 URL: https://issues.apache.org/jira/browse/AMQ-5859
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.10.2, 5.11.1
>            Reporter: Benoit Wiart
>            Priority: Critical
>
> 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
> {code}
> while (maxRetries < ++attempt && !connectionSerivce.isTerminating());
> {code}
> should be
> {code}
> while (maxRetries > ++attempt && !connectionSerivce.isTerminating());
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)