Bug 1128653
| Summary: | nextReceiver() with IMMEDIATE duration always returns null | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise MRG | Reporter: | Gordon Sim <gsim> | |
| Component: | qpid-cpp | Assignee: | Gordon Sim <gsim> | |
| Status: | CLOSED ERRATA | QA Contact: | Zdenek Kraus <zkraus> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 3.0 | CC: | gsim, iboverma, jross, lzhaldyb, pematous, zkraus | |
| Target Milestone: | --- | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | qpid-cpp-0.22-47 | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1128654 (view as bug list) | Environment: | ||
| Last Closed: | 2014-09-24 15:12:28 UTC | Type: | Bug | |
| 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: | 1128654 | |||
|
Description
Gordon Sim
2014-08-11 09:59:02 UTC
Code snippet above should read:
ssn.createReceiver("my-queue").setCapacity(1);
Receiver next;
while (ssn.nextReceiver(next, Duration::IMMEDIATE)) {}
next.get(Duration::IMMEDIATE);
(i.e. the receiver handle to be set should be passed in to the nextReceiver() call).
Fixed upstream: https://svn.apache.org/r1617256 The commit above fixes one regression but introduces another. Need https://svn.apache.org/r1617924 also from upstream. This fix was tested on RHEL 6.5 i686 && x86_64 with following packages: qpid-cpp-server-0.22-47.el6 qpid-cpp-server-rdma-0.22-47.el6 qpid-cpp-server-xml-0.22-47.el6 qpid-cpp-client-0.22-47.el6 qpid-cpp-client-devel-0.22-47.el6 qpid-cpp-client-rdma-0.22-47.el6 qpid-cpp-server-ha-0.22-47.el6 qpid-cpp-server-linearstore-0.22-47.el6 qpid-cpp-debuginfo-0.22-47.el6 qpid-cpp-server-devel-0.22-47.el6 qpid-cpp-client-devel-docs-0.22-47.el6 works as expected. 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/RHEA-2014-1296.html |