Bug 758254

Summary: The subscription queue is not removed after the link is closed
Product: Red Hat Enterprise MRG Reporter: Petr Matousek <pematous>
Component: qpid-javaAssignee: Rajith Attapattu <rattapat+nobody>
Status: CLOSED ERRATA QA Contact: Petr Matousek <pematous>
Severity: high Docs Contact:
Priority: high    
Version: 2.0CC: eallen, freznice, iboverma, jross, lzhaldyb, rattapat+nobody
Target Milestone: 3.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qpid-java-0.22 Doc Type: Bug Fix
Doc Text:
It was discovered that an incorrect implementation of the address specification caused the subscription queue to not be deleted when a link was closed. The subscription queue is now deleted when the link is closed, which fixes the originally reported issue.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-24 15:03:37 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 Petr Matousek 2011-11-29 16:13:45 UTC
Description of problem:

The consumer subscription queue is not removed after the link is closed, ie. drain program ends.

I've realised this by verifying QPID-2882, the subscription queue is now durable within the link as expected, but the queue remains after the link is closed.

c++ and python clients do not suffer from that.

note: I was wondering if this is not related to Bug 672534, but the subscription queue is not removed even if Drain is modified to close the consumer before the session is closed.

Version-Release number of selected component (if applicable):
qpid-java-0.10-11

How reproducible:
100%

Steps to Reproduce:
1.  ./run_example.sh org.apache.qpid.example.Drain "amq.topic/topic1; {link:{durable: true}}"
2. qpid-config queues or qpid-config -b exchanges
3. The subscription queue was not removed
  
Actual results:
The subscription queue is not removed after the link is closed

Expected results:
The subscription queue is removed after the link is closed

Additional info:

#./run_example.sh  org.apache.qpid.example.Drain "amq.topic/topic1; {link:{durable: true}}"
# qpid-config queues
Queue Name                                            Attributes
===========================================================================
qmfagent-f7481fc6-6242-4300-b5f3-a5d72b9dac75         auto-del excl 
...

# qpid-config -b exchanges
...
Exchange 'amq.topic' (topic)
    bind [topic1] => TempQueue7425df60-cadd-4e90-b76b-1fc44a35334b
...

Comment 3 Rajith Attapattu 2012-01-18 21:52:41 UTC
This will be addressed with the upcomming address refactoring patch.
ETA 0.16 Qpid release.

Comment 6 Rajith Attapattu 2012-10-18 13:25:45 UTC
A fix has been made in upstream
http://svn.apache.org/viewvc?rev=1397651&view=rev

You could use the above test to verify.

Comment 7 Petr Matousek 2013-08-12 14:36:51 UTC
The issue has been fixed. Verified on RHEL6.4 (i386, x86_64)

packages installed:
qpid-java-*-0.22-5

-> VERIFIED

Comment 9 Rajith Attapattu 2013-09-26 20:20:50 UTC
This is fixed in the new client. 
Tested with Drain

Comment 13 errata-xmlrpc 2014-09-24 15:03:37 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