Bug 834256
Summary: | Alternate exchange is not applied when defined in the link properties | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise MRG | Reporter: | Petr Matousek <pematous> | ||||
Component: | qpid-cpp | Assignee: | Gordon Sim <gsim> | ||||
Status: | CLOSED ERRATA | QA Contact: | Petr Matousek <pematous> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 2.1.2 | CC: | iboverma, jross, lzhaldyb, mcressma | ||||
Target Milestone: | 2.3 | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | qpid-cpp-0.18-1 | Doc Type: | Bug Fix | ||||
Doc Text: |
Cause:
The alternate-exchange option in an x-declare clause within the link-options of an address was being ignored.
Consequence:
The alternate exchange property could not be controlled via the link options.
Fix:
Alternate exchange option is not checked and used if specified.
Result:
The alternate-exchange can be controlled on queues created through the link options in an address.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2013-03-06 18:56:08 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Petr Matousek
2012-06-21 11:04:06 UTC
Created attachment 593419 [details]
test reproducer
Correction: The first reproduction scenario in Comment 1 is wrong (link properties won't apply on the node test_q): following reproduction scenario can be used instead: 1.) create a subscription queue that will be removed after one message fetch # drain -c 1 -t 60 "amq.direct/key;{link:{x-declare:{alternate-exchange:'amq.fanout'}}}" 2.) in the second cli send 6 messages to amq.direct: # spout -c 6 amq.direct/key 3.) use 'qpid-stat -e' to discover that no message arrived at the 'amq.fanout' Expected result: qpid-stat shows 5 messages on the 'amq.fanout' -- the second reproduction scenario (using the reproducer) is correct (In reply to comment #2) Note: I've forget to mention that drain has to be slightly modified, it is necessary to add some sleep (ie.sleep(1)) before the link is closed, to guarantee that the messages are firstly delivered to the subscription queue. (In reply to comment #0) Update/Clarification: - When the alternate exchange is defined in the link properties, the alternate - exchange setting is not applied, regardless if defined for queue, - subscription queue or exchange (defining alt-ex in node properties does not - suffer from that). + When the alternate exchange is defined in the link properties for a subscription queue, the alternate exchange setting is not applied. Fixed upstream: http://svn.apache.org/viewvc?view=revision&revision=1358321 This issue has been fixed. Verified on rhel5.8 and rhel6.3 (x86_64, i386) packages used for testing: qpid-cpp-0.18-1 -> VERIFIED Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0561.html |