Hide Forgot
Created attachment 476625 [details] Source for reproducing hang Description of problem: After a receiver rejects some number of messages, no additional messages are received by the receiver even though messages are on the queue. A simple program is attached which demostrates the issue. Version-Release number of selected component (if applicable): qpid-cpp-client-devel-0.7.946106-24_ptc_hotfix_2.el5 qpid-cpp-mrg-debuginfo-0.7.946106-24_ptc_hotfix_2.el5 qpid-cpp-server-cluster-0.7.946106-24_ptc_hotfix_2.el5 qpid-cpp-server-store-0.7.946106-24_ptc_hotfix_2.el5 qpid-cpp-server-rdma-0.7.946106-24_ptc_hotfix_2.el5 qpid-cpp-server-devel-0.7.946106-24_ptc_hotfix_2.el5 qpid-cpp-client-ssl-0.7.946106-24_ptc_hotfix_2.el5 qpid-cpp-client-0.7.946106-24_ptc_hotfix_2.el5 qpid-cpp-server-ssl-0.7.946106-24_ptc_hotfix_2.el5 qpid-cpp-client-devel-docs-0.7.946106-24_ptc_hotfix_2.el5 qpid-cpp-client-rdma-0.7.946106-24_ptc_hotfix_2.el5 qpid-cpp-server-0.7.946106-24_ptc_hotfix_2.el5 How reproducible: Easily Steps to Reproduce: 1. Start a broker on port 5673 (or modify script) 2. Compile and run attached script 3. Actual results: 5 Messages are sent, 5 Messages are received and rejected. 5 more messages are sent, only 2 messages are received and rejected. The program hangs waiting for another message to be received. Expected results: 10 messages are sent and 10 messages are received. The example terminates. Additional info:
Fixed upstream: http://svn.apache.org/viewvc?view=revision&revision=1073085
Fix available in https://brewweb.devel.redhat.com/buildinfo?buildID=157935
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: For subscriptions using a broker managed credit window, this window was sometimes not moved forward correctly in the presence of rejected messages . Consequence: Sessions rejecting messages could stall and not get further messages even if there were messages available on the queue they were subscribed to. Fix: Ensure credit window is always moved correctly for rejected messages. Result: Session rejecting messages continue to get messages as expected.
This issue has been fixed Verified on RHEL4.9, RHEL5.6 and RHEL6.1, architectures: i386, x86_64 packages installed: qpid-cpp-client-devel-docs-0.10-1.el5 qpid-cpp-server-devel-0.10-1.el5 qpid-cpp-server-xml-0.10-1.el5 qpid-cpp-server-0.10-1.el5 qpid-cpp-client-ssl-0.10-1.el5 qpid-cpp-server-store-0.10-1.el5 qpid-cpp-server-cluster-0.10-1.el5 qpid-cpp-client-0.10-1.el5 qpid-cpp-client-devel-0.10-1.el5 qpid-cpp-server-ssl-0.10-1.el5 -> VERIFIED
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-2011-0890.html