Bug 456560

Summary: Timed SubscriptionManager::get() doesn't work properly
Product: Red Hat Enterprise MRG Reporter: Gordon Sim <gsim>
Component: qpid-cppAssignee: Gordon Sim <gsim>
Status: CLOSED ERRATA QA Contact: Kim van der Riet <kim.vdriet>
Severity: medium Docs Contact:
Priority: urgent    
Version: 1.0CC: freznice
Target Milestone: 1.0.1   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-10-06 19:08:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 459257    

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