Bug 860704

Summary: HA backups continuously disconnect / re-sync after attempting to replicate a deleted queue
Product: Red Hat Enterprise MRG Reporter: Jason Dillaman <jdillama>
Component: qpid-cppAssignee: Alan Conway <aconway>
Status: CLOSED CURRENTRELEASE QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: high Docs Contact:
Priority: high    
Version: DevelopmentCC: aconway, esammons, iboverma, jross, lzhaldyb, mcressma
Target Milestone: 2.3Keywords: OtherQA
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qpid-cpp-0.18-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-19 16:38:02 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: 698367    
Attachments:
Description Flags
Quick patch to work-around the discovered issues none

Description Jason Dillaman 2012-09-26 14:12:40 UTC
See https://issues.apache.org/jira/browse/QPID-4285

Comment 1 Jason Dillaman 2012-09-26 14:25:28 UTC
Created attachment 617569 [details]
Quick patch to work-around the discovered issues

Comment 2 Alan Conway 2012-10-02 18:46:53 UTC
Taken from trunk r1393089

Bug-860704 - QPID-4285: HA backups continuously disconnect / re-sync after attempting to replicate a deleted queue. (Based on patch Jason Dillama)
    
    This does not directly tackle the origin of the problem but extends Jasons's patch since
    it addresses something we had to fix anyway: "leaking" queues and exchanges. It does 2 things.
    
    1. enabled hideDeletedError on all subscription objects used by HA
    This suppress the troublesome exception with a harmless no-op
    
    2. Delete queues/exchanges missing from responses (based on Jasons patch)
    Fix the "leak" of queues and exchanges possible when an object replicated
    to a backup is deleted from the newn primary before the backup connects.

Comment 3 Alan Conway 2012-10-02 21:53:35 UTC
Committed to release repo http://mrg1.lab.bos.redhat.com/cgit/qpid.git/commit/?h=0.18-mrg&id=017c5e13f9bdaf6e516f7b1cd86624ec51c438b0

and on trunk:
 ------------------------------------------------------------------------
r1393201 | aconway | 2012-10-02 17:46:50 -0400 (Tue, 02 Oct 2012) | 9 lines

QPID-4285: HA backups continuously disconnect / re-sync after attempting to replicate a deleted queue

Fixes queues getting into a partially deleted state: previously when a broker was
promoted, it did not clean up it's QueueReplicators. The QueueReplicators keep a
shared_ptr to the Queue so this kept Queues in memory after they were destroyed. It also
kept them in QMF, since the management object is unregistered in the destructor.

This patch cleans up properly on promotion.

------------------------------------------------------------------------

Comment 5 Mike Cressman 2012-10-17 22:10:24 UTC
*** Bug 860412 has been marked as a duplicate of this bug. ***