Bug 859119 - Potential HA broker message duplication when deleting a queue with an alt-exchange
Summary: Potential HA broker message duplication when deleting a queue with an alt-exc...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: Development
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: 3.0
: ---
Assignee: Alan Conway
QA Contact: Irina Boverman
URL:
Whiteboard:
Depends On:
Blocks: 698367
TreeView+ depends on / blocked
 
Reported: 2012-09-20 15:23 UTC by Jason Dillaman
Modified: 2014-09-24 15:04 UTC (History)
5 users (show)

Fixed In Version: qpid-cpp-0.22-30
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-24 15:04:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
test script (1.90 KB, application/x-shellscript)
2014-02-26 16:27 UTC, Irina Boverman
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Apache JIRA QPID-5404 0 None None None Never
Red Hat Product Errata RHEA-2014:1296 0 normal SHIPPED_LIVE Red Hat Enterprise MRG Messaging 3.0 Release 2014-09-24 19:00:06 UTC

Description Jason Dillaman 2012-09-20 15:23:45 UTC
Description of problem:
When deleting a queue with an alternate exchange, both the primary and the backup brokers will route messages to the alt-exchange when the queue is deleted.  This will cause the backups to potentially receive duplicate copies of the message if the alt-exchange is bound to a replicated queue (one set from the local route to the alt-exchange and another from the primary due to its route to the alt-exchange).  Suggest that the backup brokers should not route messages to the alt-exchange when a queue is deleted.  

Additionally, for auto-delete queues with an alt-exchange, upon loss of a primary, the backup brokers should not immediately start the auto-delete process.  Instead, the backups should wait for the promotion of a new primary.  Upon selection of the new primary, the auto-delete process can start so that the new primary will route the messages to the alt-exchange and the backups will not route the messages to the alt-exchange.

Version-Release number of selected component (if applicable):
Qpid 0.18

How reproducible:
Backup needs to receive the QMF queue delete event prior to receiving the queue's deque replication events.

Steps to reproduce:
1) Bind queue test0 to amq.fanout
2) Create queue test1 with an alt-exchange to amq.fanout
3) Send a message to test1
4) Delete queue test1

Actual results:
The queue test0 will have 1 message on the primary host but 2 messages on the backups

Expected results:
The queue test0 will have 1 message on all hosts

Comment 1 Alan Conway 2013-12-10 17:14:32 UTC
Fixed on 0.22-mrg-aconway-bz859119
(Based on 0.22-mrg-aconway-bz1030608)

Comment 4 Irina Boverman 2014-02-26 16:27:55 UTC
Created attachment 868100 [details]
test script

Comment 5 errata-xmlrpc 2014-09-24 15:04:45 UTC
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/RHEA-2014-1296.html


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