Bug 456560 - Timed SubscriptionManager::get() doesn't work properly
Summary: Timed SubscriptionManager::get() doesn't work properly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: 1.0
Hardware: All
OS: Linux
urgent
medium
Target Milestone: 1.0.1
: ---
Assignee: Gordon Sim
QA Contact: Kim van der Riet
URL:
Whiteboard:
Depends On:
Blocks: 459257
TreeView+ depends on / blocked
 
Reported: 2008-07-24 17:25 UTC by Gordon Sim
Modified: 2011-08-12 16:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-10-06 19:08:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2008:0640 0 normal SHIPPED_LIVE Red Hat Enterprise MRG bug fix and enhancement update 2008-10-06 19:08:07 UTC

Description Gordon Sim 2008-07-24 17:25:19 UTC
When invoking SubscriptionManager::get() with a non-zero timeout the expectation
is that if a message is not on the queue at that time the thread will block for
the desired time waiting for one to arrive.

However a flush is issued before the wait starts. This means that if the queue
is empty at that point no message will be sent but the credit will be set to
zero and so when a message does arrive it won't get delivered.

Comment 1 Gordon Sim 2008-07-25 10:26:27 UTC
Fix applied on trunk (r679739) and qpid.0-10(r679748).

Comment 3 Frantisek Reznicek 2008-09-12 12:33:10 UTC
RHTS test (MRG_Messaging/qpid_localqueue_timeout_bz453599) implements SubscriptionManager::get() test with non zero timeout and proves that SubscriptionManager::get() now correctly waits. (ON_QA->VERIFIED)

Comment 5 errata-xmlrpc 2008-10-06 19:08:15 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/RHBA-2008-0640.html


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