Bug 966703 - Closing session that created exclusive queue does not alter QMF object for the queue as non-exclusive
Summary: Closing session that created exclusive queue does not alter QMF object for th...
Keywords:
Status: POST
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: 2.3
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: Gordon Sim
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-23 17:51 UTC by Pavel Moravec
Modified: 2023-06-14 21:30 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Trivial patch proposal (528 bytes, patch)
2013-05-24 10:23 UTC, Pavel Moravec
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Apache JIRA QPID-4178 0 None None None Never

Description Pavel Moravec 2013-05-23 17:51:07 UTC
Description of problem:
When a session creates an exclusive queue and then the session is closed, the queue is / should be marked as non-exclusive. While a consumer can subscribe to such queue (meaning the queue really isnt exclusive), qpid tools still show the queue as exclusive.

The reason is when cancelling the queue subscription, exclusive flag is reset properly but relevant QMF object isn't updated (see patch).


Version-Release number of selected component (if applicable):
0.18-14 (seems to be in upstream = 0.22 as well)


How reproducible:
100%


Steps to Reproduce:
1. Create an exclusive queue, and release all subscribers
/usr/share/doc/python-qpid-0.18/examples/api/drain "MyQueue; {create:receiver, node:{ x-declare:{ exclusive:true}}}"

2. check the queue exclusivity
qpid-config queues


Actual results:
# qpid-config queues
Queue Name                                Attributes
=================================================================
MyQueue                                   excl 
ae4588ea-6ddf-446c-a235-8073c1d83ace:0.0  auto-del excl 
#


Expected results:
# qpid-config queues
Queue Name                                Attributes
=================================================================
MyQueue                                    
ae4588ea-6ddf-446c-a235-8073c1d83ace:0.0  auto-del excl 
#


Additional info:
Patch to be provided.

Comment 2 Pavel Moravec 2013-05-24 10:23:52 UTC
Created attachment 752532 [details]
Trivial patch proposal

When releasing exclusive ownership of a queue, relevant QMF management object has to unset exclusive flag.

Comment 4 Pavel Moravec 2013-05-24 10:30:37 UTC
Btw. upstream has already fixed this in revision 1371676 (per http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/Queue.cpp?view=annotate and Queue::releaseExclusiveOwnership() method there).

Comment 5 Justin Ross 2013-05-24 12:10:17 UTC
I moved this to POST, but it may end up needing a narrower backport.

Comment 6 Mike McCune 2016-03-28 22:40:27 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions


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