Bug 694617

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-javaAssignee: Rajith Attapattu <rattapat+nobody>
Status: CLOSED ERRATA QA Contact: Petr Matousek <pematous>
Severity: high Docs Contact:
Priority: urgent    
Version: DevelopmentCC: 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:

Description Ted Ross 2011-04-07 19:06:24 UTC
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.

Comment 1 Ted Ross 2011-04-11 12:31:45 UTC
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'}}}"

Comment 2 Ted Ross 2011-04-11 12:32:48 UTC
Fixed upstream (by Rajith) in commits 1090421 and 1090422.

Comment 5 Petr Matousek 2011-05-05 14:40:33 UTC
This issue has been fixed

Verified on RHEL5.6 and RHEL6.1, architectures: i386, x86_64

packages installed:
qpid-java-0.10-4

-> VERIFIED

Comment 6 errata-xmlrpc 2011-06-23 15:44:39 UTC
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