| Summary: | alternate-exchange (in x-declare part of address) does not work from JMS | ||
|---|---|---|---|
| Product: | Red Hat Enterprise MRG | Reporter: | Ted Ross <tross> |
| Component: | qpid-java | Assignee: | Rajith Attapattu <rattapat+nobody> |
| Status: | CLOSED ERRATA | QA Contact: | Petr Matousek <pematous> |
| Severity: | high | Docs Contact: | |
| Priority: | urgent | ||
| Version: | Development | CC: | iboverma, jneedle, pematous, tross |
| Target Milestone: | 2.0 | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | qpid-java-0.10-4 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-06-23 15:44:39 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Minor correction on reproducer... The alternate exchange name needs to be quoted:
./runSample.sh org.apache.qpid.example.Spout
"test-queue;{create:always,node:{type:queue,x-declare:{alternate-exchange:'amq.fanout'}}}"
./runSample.sh org.apache.qpid.example.Spout
"test-exchange;{create:always,node:{type:topic,x-declare:{alternate-exchange:'amq.fanout'}}}"
Fixed upstream (by Rajith) in commits 1090421 and 1090422. The commits have been ported to the mrg_2.0.x branch. http://mrg1.lab.bos.redhat.com/cgit/qpid.git/commit/?h=mrg_2.0.x&id=c4ad52512614d346581f674abea500a19ee0c4f0 http://mrg1.lab.bos.redhat.com/cgit/qpid.git/commit/?h=mrg_2.0.x&id=e9bdc58cf9da266b1e20b2d204b70de95f774b29 This issue has been fixed Verified on RHEL5.6 and RHEL6.1, architectures: i386, x86_64 packages installed: qpid-java-0.10-4 -> VERIFIED An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2011-0890.html |
Description of problem: If the alternate-exchange option is specified in queue or exchange creation via JMS, the alternate exchange is ignored. Version-Release number of selected component (if applicable): qpid-java-0.10-2 How reproducible: 100% Steps to Reproduce: 1. Start a broker 2. Run the Java spout example: ./runSample.sh org.apache.qpid.example.Spout "test-queue;{create:always,node:{type:queue,x-declare:{alternate-exchange:amq.fanout}}}" ./runSample.sh org.apache.qpid.example.Spout "test-exchange;{create:always,node:{type:topic,x-declare:{alternate-exchange:amq.fanout}}}" 3. Use qpid-config to examine the results: qpid-config queues qpid-config exchanges Actual results: The newly created objects (test-queue and test-exchange) should have alternate exchanges listed. They do not. Expected results: Listed alternate exchanges. Note that doing the same experiment with the C++ spout example yields the expected results.