Bug 1018765

Summary: [amqp1.0] amqp1.0 message is not routed to the queue alternate exchange
Product: Red Hat Enterprise MRG Reporter: Petr Matousek <pematous>
Component: qpid-cppAssignee: Gordon Sim <gsim>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matousek <pematous>
Severity: medium Docs Contact:
Priority: unspecified    
Version: DevelopmentCC: esammons, gsim, iboverma, jross
Target Milestone: 3.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qpid-cpp-0.22-20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-21 12:57:12 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:
Bug Depends On:    
Bug Blocks: 1010399    

Description Petr Matousek 2013-10-14 11:43:31 UTC
Description of problem:

Rejected message is not routed to the queue alternate exchange. See 'Steps to Reproduce' below for more details.

Note: this applies only to amqp1.0 protocol, amqp0-10 routes the message to the alternate exchange correctly

Version-Release number of selected component (if applicable):
qpid-cpp-*-0.22-19

How reproducible:
100%

Steps to Reproduce:
1. subscribe a consumer to alternate exchange, ie:
# drain --connection-options "{protocol: 'amqp1.0'}" -f amq.fanout
2. create a queue with alternate-exchange specified and send a message towards it
# spout --connection-options "{protocol: 'amqp1.0'}" "q;{create:always, node:{x-declare:{alternate-exchange: 'amq.fanout'}}}"
3. acquire and reject the message using consumer, the message shall be routed to the defined alternate exchange
4. No message was delivered on the alternate exchange

Actual results:
Rejected message is NOT routed to the alternate exchange

Expected results:
Rejected message is routed to the alternate exchange

Additional info:

Comment 1 Petr Matousek 2013-10-15 08:02:08 UTC
Note: The message is not dropped, it is returned to the queue, but shall be routed to alternate-exchange

Comment 2 Gordon Sim 2013-10-15 13:01:23 UTC
Fixed upstream: https://svn.apache.org/r1532307

Comment 3 Petr Matousek 2013-10-22 09:42:19 UTC
This issue has been fixed. Verified on rhel6.4 (i386, x86_64).

packages used for testing:
qpid-cpp-*-0.22-20.el6