Bug 673678

Summary: unable to reroute priority queues (intermittent)
Product: Red Hat Enterprise MRG Reporter: matthew.king
Component: qpid-cppAssignee: Gordon Sim <gsim>
Status: CLOSED CURRENTRELEASE QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: high Docs Contact:
Priority: unspecified    
Version: DevelopmentCC: christopher.pitman, gsim, jross
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: 0.10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-24 21:53:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Code to reproduce the problem none

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