Bug 673678 - unable to reroute priority queues (intermittent)
Summary: unable to reroute priority queues (intermittent)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: Development
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Gordon Sim
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-29 16:21 UTC by matthew.king
Modified: 2013-02-24 21:53 UTC (History)
3 users (show)

Fixed In Version: 0.10
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-24 21:53:33 UTC
Target Upstream Version:


Attachments (Terms of Use)
Code to reproduce the problem (50.00 KB, application/x-tar)
2011-01-29 16:21 UTC, matthew.king
no flags Details

Description matthew.king 2011-01-29 16:21:53 UTC
Created attachment 475952 [details]
Code to reproduce the problem

Description of problem:
I am unable to reroute a priority queue.

Version-Release number of selected component (if applicable):
qpid-cpp-client-0.7.946106-24_ptc_hotfix_2.el5

How reproducible:
Code attached: make; ./restart; ./pri until the method request succeeds (there is a delay in the queue appearance); qpid-tool

Steps to Reproduce:
1. Create priority queue with 10 priority levels.
2. Send 10 messages of priority 1.
3. Send qmf2 method request for "reroute" to a specific exchange.
4. Use qpid-tool to watch msgDepth (or: watch the exchange's msgReceives).  

Actual results:
msgDepth remains 10.

Expected results:
msgDepth is 0 and msgReceives is 10.

Comment 1 Chris Pitman 2011-01-29 16:46:38 UTC
These tests are against the following rpms:

qpid-tools-0.7.946106-11.el5
qpid-cpp-client-devel-0.7.946106-24_ptc_hotfix_2.el5
qpid-cpp-mrg-debuginfo-0.7.946106-24_ptc_hotfix_2.el5
qpid-cpp-server-cluster-0.7.946106-24_ptc_hotfix_2.el5
qpid-cpp-server-store-0.7.946106-24_ptc_hotfix_2.el5
qpid-cpp-server-rdma-0.7.946106-24_ptc_hotfix_2.el5
qpid-cpp-server-devel-0.7.946106-24_ptc_hotfix_2.el5
qpid-cpp-client-ssl-0.7.946106-24_ptc_hotfix_2.el5
python-qpid-0.7.946106-14.el5
qpid-cpp-client-0.7.946106-24_ptc_hotfix_2.el5
qpid-cpp-server-ssl-0.7.946106-24_ptc_hotfix_2.el5
qpid-cpp-client-devel-docs-0.7.946106-24_ptc_hotfix_2.el5
qpid-cpp-client-rdma-0.7.946106-24_ptc_hotfix_2.el5
qpid-cpp-server-0.7.946106-24_ptc_hotfix_2.el5

Comment 2 Chris Pitman 2011-01-29 16:59:31 UTC
Additionally, if we send messages of only priority 0 the test works.  It is only when the messages are of different priorities that no messages are routed.

Comment 3 Gordon Sim 2011-02-01 17:04:22 UTC
The path for reroute does not take priority into account and currently only sees priority 0 messages.

Comment 4 Gordon Sim 2011-02-22 12:39:10 UTC
Comment above is inaccurate, the codepath does in part take account of priority and does see priorities other than priority 0. However it will only work while there are 0 priority messages available.

Comment 5 Gordon Sim 2011-02-24 11:49:33 UTC
Fix available in https://brewweb.devel.redhat.com/buildinfo?buildID=157935


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