Bug 1254590 - AMQP 1.0 jms client ignores failover.useReconnectBackOff value
Summary: AMQP 1.0 jms client ignores failover.useReconnectBackOff value
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-java
Version: 3.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 3.2
: ---
Assignee: Robbie Gemmell
QA Contact: Messaging QE
URL:
Whiteboard:
Depends On:
Blocks: 1215806
TreeView+ depends on / blocked
 
Reported: 2015-08-18 13:21 UTC by Michal Toth
Modified: 2015-09-28 13:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-20 15:40:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ENTMQCL-13 0 Minor Closed AMQP 1.0 jms client ignores failover.useReconnectBackOff value 2015-10-05 21:14:31 UTC

Description Michal Toth 2015-08-18 13:21:34 UTC
Note: Using qpid-java as component (but referring to the latest pacakged qpid-jms-client 0.3.0).
See more information in a linked JIRA
"When client (re)connects using ReconnectBackOff set to false/0/off - this value is always ignored and default value of 2 of reconnectBackOffMultiplier is used.
Also failover.reconnectBackOffMultiplier is ignored when reconnectBackOff is set to true."

Comment 1 Robbie Gemmell 2015-08-19 14:22:12 UTC
( Copy of comment from: https://issues.jboss.org/browse/ENTMQCL-13?focusedCommentId=13099846&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13099846 )


I believe this is because the URI being used isnt in the documented format (e.g detailed at: http://qpid.apache.org/releases/qpid-jms-0.4.0/docs/index.html#failover-configuration-options).

The documented format looks like:
{noformat}
failover:(brokerURI1[,brokerURI2])?<failover.options>&<failover.nested.options>
{noformat}

whereas the format being used here is:
{noformat}
failover:amqp://localhost:5672?<jms.options>&<failover.options>.
{noformat}

In the above case it isnt distinguishable [without the documented use of parethesis] that the stuff after the ? isn't part of the broker URI, and so it had no effect on the failover layer but was instead treated as part of the broker uri. The 'failover.' options were presumably then not collected for use by the JMS/transport layers when given the URI because they dont match the relevant prefix those layers use.

Adding the parethesis as documented should get things going.

Comment 2 JBoss JIRA Server 2015-08-20 11:07:15 UTC
Michal Toth <mtoth> updated the status of jira ENTMQCL-13 to Closed

Comment 3 Robbie Gemmell 2015-08-20 15:40:06 UTC
Closing BZ to match the JIRA, Michal confirmed things work with the URI update.


Note You need to log in before you can comment on or make changes to this bug.