Bug 874298 - HA add UUID tag to avoid using an out of date queue.
Summary: HA add UUID tag to avoid using an out of date queue.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: Development
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: 2.3
: ---
Assignee: Alan Conway
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks: 698367
TreeView+ depends on / blocked
 
Reported: 2012-11-07 21:09 UTC by Alan Conway
Modified: 2013-03-19 16:38 UTC (History)
5 users (show)

Fixed In Version: qpid-cpp-0.18-9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-19 16:38:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Apache JIRA QPID-4428 0 None None None 2012-11-07 21:13:05 UTC

Description Alan Conway 2012-11-07 21:09:56 UTC
Description of problem:

Here's the scenario: we have a cluster with primary A and backups B and C. There is a queue Q that is replicated to both. Now A dies and B takes over as primary. Before C has connected to B, a client destroys Q and creates a new queue with the same name, Q. When C does connect it sees a queue named Q and mistakenly assumes it is the same queue as it's own Q - so it has an incorrect replica of Q. The same scenario applies to exchanges.


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


How reproducible: 100%


Steps to Reproduce:
1. Start a 3 cluster
2. Create a queue Q with messages
3. Kill the primary but don't promote any backups
4. On one broker delete and re-create Q, then promote the broker
  
Actual results: The other backup will keep it's out-of-date Q and messages.

Expected results: The other backup deletes its old Q and creates a new one to replicate the new Q.

Additional info:

The unit test in this patch illustrates how to reproduce the problem.


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