Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 731368 - Only one message is consumed using c++ drain by default
Only one message is consumed using c++ drain by default
Status: CLOSED ERRATA
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp (Show other bugs)
2.0
Unspecified Unspecified
low Severity unspecified
: 2.1.2
: ---
Assigned To: Gordon Sim
Petr Matousek
:
Depends On:
Blocks: 783492
  Show dependency treegraph
 
Reported: 2011-08-17 08:55 EDT by Petr Matousek
Modified: 2012-04-30 13:52 EDT (History)
3 users (show)

See Also:
Fixed In Version: qpid-cpp-mrg-0.14-3.el5
Doc Type: Bug Fix
Doc Text:
Cause: Using the drain example from different language clients. Consequence: The version of the example shipped with the c++ client behaved differently from those shipped with python nd java in that it would by default only consume one message (rather than all available messages). Fix: The example was changed to behave like that for python and java in this regard. Result: The examples will now behave consistently in consuming all available messages.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-04-30 13:52:03 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:0529 normal SHIPPED_LIVE Moderate: Red Hat Enterprise MRG Messaging 2.1 security and enhancement update 2012-04-30 17:48:25 EDT

  None (edit)
Description Petr Matousek 2011-08-17 08:55:35 EDT
Description of problem:

Only one message is consumed when using c++ drain without "-c" option.

All messages are consumed with "-c 0" option, this shall be the default behaviour. 

All messages are consumed when using other clients.

All the clients shall behave the same way. 

Version-Release number of selected component (if applicable):
qpid-cpp-client-0.10-6

How reproducible:
100%

Steps to Reproduce:
1. spout -c 2 "q;{create:sender}"
2. drain "q"
3. only one message is consumed
  
Actual results:
Only one message is consumed with drain by default.

Expected results:
All messages from the specified address shall be consumed by default.

Additional info:
Comment 1 Gordon Sim 2011-08-24 11:27:30 EDT
Fixed upstream: http://svn.apache.org/viewvc?view=rev&rev=1161152
Comment 3 Petr Matousek 2012-01-12 11:39:27 EST
This issue was fixed.

Verified on RHEL5.7 and RHEL6.2, architectures: x86_64, i686 

packages installed:
qpid-cpp-mrg-0.14-3.el5
qpid-cpp-0.14-1.el6

VERIFIED
Comment 4 Gordon Sim 2012-03-06 13:31:39 EST
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause:

  Using the drain example from different language clients. 

Consequence:

  The version of the example shipped with the c++ client behaved differently from those shipped with python nd java in that it would by default only consume one message (rather than all available messages).

Fix:

  The example was changed to behave like that for python and java in this regard.

Result:

  The examples will now behave consistently in consuming all available messages.
Comment 5 errata-xmlrpc 2012-04-30 13:52:03 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2012-0529.html

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