Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 929169 - Closing a topic consumer should delete its exclusive auto-delete queue
Closing a topic consumer should delete its exclusive auto-delete queue
Status: CLOSED ERRATA
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-java (Show other bugs)
2.3
All All
medium Severity medium
: 3.1
: ---
Assigned To: Rajith Attapattu
Michal Toth
: TestCaseProvided
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-29 07:28 EDT by Pavel Moravec
Modified: 2015-04-14 09:46 EDT (History)
3 users (show)

See Also:
Fixed In Version: qpid-java-0.30-2
Doc Type: Bug Fix
Doc Text:
The expected behavior of a topic consumer is to persist the subscription queue when the topic consumer is closed. The subscription queue is deleted automatically when the session is closed due to being marked auto-delete. It was discovered that the subscription queue remained on the broker, even after the subscription queue was closed. The fix now ensures the subscription queue is deleted when the consumer is closed, with the exception of JMS durable subscriptions.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-04-14 09:46:31 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Reproducer (1.63 KB, text/x-java)
2013-03-29 07:28 EDT, Pavel Moravec
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2015:0805 normal SHIPPED_LIVE Red Hat Enterprise MRG Messaging 3.1 Release 2015-04-14 13:45:54 EDT

  None (edit)
Description Pavel Moravec 2013-03-29 07:28:11 EDT
Created attachment 718037 [details]
Reproducer

Description of problem:
Having a topic consumer, closing it should delete its auxiliary auto-delete exclusive queue. Currently Java client does so even when the session is closed, while the session can be used to subsequent producer traffic, e.g.


Version-Release number of selected component (if applicable):
qpid-java-*-0.18-7


How reproducible:
100%


Steps to Reproduce:
1. java test_00808098 "amq.topic/key3; { node:{ type:topic}, link:{x-bindings:[{ exchange:'amq.topic', key:'key1'}, { exchange:'amq.topic', key:'key2' }]}}"
Consumer created, press enter to continue
(in another terminal, run "qpid-config queues -r" to see the aux.queue named like TempQueuef6f5a3f6-6498-49c2-ac98-92ae73bff2b4)

Consumer closed, press enter to continue
(in the second terminal, run "qpid-config queues -r" again and check if the queue exists or not)

Session closed, press enter to continue
(in the second terminal, run "qpid-config queues -r" again and check if the queue exists or not)

Connection closed, press enter to continue


Actual results:
The first check after consumer closed shows the queue present. The queue is deleted even after session is closed (i.e. second check).


Expected results:
Even the first check shows the queue already gone.


Additional info:
This would align JMS client behavior with C++ and Python client behavior.

Also it would prevent another bug - see that after consumer is closed, binding amq.topic -> key3 -. aux.queue also exists (key3 is the routing key from the address string).
Comment 1 Rajith Attapattu 2014-07-02 19:05:39 EDT
https://issues.apache.org/jira/browse/QPID-5870

Attached a patch to the JIRA and will commit shortly.
Comment 2 Justin Ross 2014-07-22 11:46:37 EDT
https://svn.apache.org/r1608971
Comment 4 Michal Toth 2015-01-15 11:22:33 EST
Verified
Comment 5 Michal Toth 2015-01-15 11:25:44 EST
Tested on 
qpid-java-client-0.30-3.el6.noarch
qpid-java-common-0.30-3.el6.noarch
qpid-java-example-0.30-3.el6.noarch
Comment 10 errata-xmlrpc 2015-04-14 09:46:31 EDT
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.

https://rhn.redhat.com/errata/RHEA-2015-0805.html

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