Bug 533361 - Released message can hamper correct browsing of the queue
Summary: Released message can hamper correct browsing of the queue
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: 1.2
Hardware: All
OS: Linux
urgent
medium
Target Milestone: 1.2
: ---
Assignee: Gordon Sim
QA Contact: Frantisek Reznicek
URL:
Whiteboard:
Depends On:
Blocks: 527551
TreeView+ depends on / blocked
 
Reported: 2009-11-06 11:31 UTC by Gordon Sim
Modified: 2015-11-16 01:11 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Messaging bug fix C: Dequeued messages were being requeued in the wrong order. C: When the queue was browsed, messages did not appear as expected F: Requeuing of messages now occurs in the correct order R: Browsing a queue with requeued messages is accurate. Dequeued messages were being requeued in the wrong order, resulting in messages not appearing correctly when the queue was browsed. Requeuing of messages now occurs in the correct order and browsing a queue with requeued messages is accurate.
Clone Of:
Environment:
Last Closed: 2009-12-03 09:17:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
acquiring client (2.61 KB, text/x-c++src)
2009-11-06 11:32 UTC, Gordon Sim
no flags Details
sending client (936 bytes, text/x-c++src)
2009-11-06 11:32 UTC, Gordon Sim
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2009:1633 0 normal SHIPPED_LIVE Red Hat Enterprise MRG Messaging and Grid Version 1.2 2009-12-03 09:15:33 UTC

Description Gordon Sim 2009-11-06 11:31:20 UTC
Description of problem:

If an acquired message is released, it is requeued in such a way that subsequent browsing of the queue is affected. This is a result of it being requeued in the wrong position in the queue.

Version-Release number of selected component (if applicable):

qpidd-0.5.752581-30.el5

How reproducible:

100%

Steps to Reproduce: (using attached example programs)
1. for m in aaa bbb ccc; do echo $m; done | ./send
2. ./example3
3. don't process aaa, do process bbb, don't process ccc; then ctrl-c to exit
4. restart: ./example3
  
Actual results:

Only see ccc until that is consumed

Expected results:

Should see both aaa and ccc.

Additional info:

Comment 1 Gordon Sim 2009-11-06 11:32:11 UTC
Created attachment 367813 [details]
acquiring client

Comment 2 Gordon Sim 2009-11-06 11:32:31 UTC
Created attachment 367814 [details]
sending client

Comment 3 Gordon Sim 2009-11-09 14:51:45 UTC
Fixed on trunk by r834026.

Comment 5 Irina Boverman 2009-11-09 19:01:01 UTC
Release note added. If any revisions are required, please set the 
"requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly.
All revisions will be proofread by the Engineering Content Services team.

New Contents:
Resolved problem with incorrect positioning of the requeued messages resulting from release of the acquired messages: releases messages no longer hamper message queue browsing.

Comment 6 Frantisek Reznicek 2009-11-16 13:54:46 UTC
The issue has been fixed, verified on RHEL 4.8 / 5.4 i386 / x86_64 on packages:
[root@mrg-qe-01 bz533361]# rpm -qa | egrep '(rhm|qpid|qmf)' | sort -u
condor-qmf-plugins-7.4.1-0.5.el5
python-qpid-0.5.752581-4.el5
qmf-0.5.752581-34.el5
qmf-devel-0.5.752581-34.el5
qpidc-0.5.752581-34.el5
qpidc-debuginfo-0.5.752581-31.el5
qpidc-devel-0.5.752581-34.el5
qpidc-perftest-0.5.752581-34.el5
qpidc-rdma-0.5.752581-34.el5
qpidc-ssl-0.5.752581-34.el5
qpidd-0.5.752581-34.el5
qpidd-acl-0.5.752581-34.el5
qpidd-cluster-0.5.752581-34.el5
qpidd-devel-0.5.752581-34.el5
qpid-dotnet-0.4.738274-2.el5
qpidd-rdma-0.5.752581-34.el5
qpidd-ssl-0.5.752581-34.el5
qpidd-xml-0.5.752581-34.el5
qpid-java-client-0.5.751061-9.el5
qpid-java-common-0.5.751061-9.el5
rhm-0.5.3206-27.el5
rhm-debuginfo-0.5.3206-16.el5
rhm-docs-0.5.756148-1.el5

-> VERIFIED

Comment 7 Lana Brindley 2009-11-23 06:37:52 UTC
Release note updated. If any revisions are required, please set the 
"requires_release_notes"  flag to "?" and edit the "Release Notes" field accordingly.
All revisions will be proofread by the Engineering Content Services team.

Diffed Contents:
@@ -1 +1,8 @@
-Resolved problem with incorrect positioning of the requeued messages resulting from release of the acquired messages: releases messages no longer hamper message queue browsing.+Messaging bug fix
+
+C: Dequeued messages were being requeued in the wrong order.
+C: When the queue was browsed, messages did not appear as expected
+F: Requeuing of messages now occurs in the correct order
+R: Browsing a queue with requeued messages is accurate.
+
+Dequeued messages were being requeued in the wrong order, resulting in messages not appearing correctly when the queue was browsed. Requeuing of messages now occurs in the correct order and browsing a queue with requeued messages is accurate.

Comment 9 errata-xmlrpc 2009-12-03 09:17:09 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-1633.html


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