Red Hat Bugzilla – Bug 513641
qpid-config gives error "Failed: ()" when creating persistent queue
Last modified: 2013-09-12 18:10:53 EDT
Description of problem: Creating a persistent queue gives error "Failed" when it takes more than 10-12 seconds for the store journal to be created. Though this error the queue is created correctly and functions with no problems. Version-Release number of selected component (if applicable): python-qpid-0.5.752581-1.el5 How reproducible: 100% (see Additional info below) Steps to Reproduce: 1. Create a persistent queue with a size that it takes more then 10-12 seconds for qpidd to create the store journal(/path/to/qpidd/datadir/rhm/jrnl) Actual results: [root@graz log]# qpid-config --broker-addr guest/guest@stanton:5672 add queue cms.inbound.trips --limit-policy reject --file-size 1512 --durable Failed: () [root@graz log]# Expected results: [root@graz log]# qpid-config --broker-addr guest/guest@stanton:5672 add queue cms.inbound.trips --limit-policy reject --file-size 1512 --durable [root@graz log]# Additional info: The example above is based on a gfs mounted qpidd datadir with a 758MB journal that takes 30 seconds to be created. The same has being reproduced on a datadir mounted on local disk (with 4 times faster disk I/O). This creates the 758MB journal in 8 seconds and produce no error. But setting "--file-size 3024" takes 16 seconds and again produces the "Failed: ()" error.
Created attachment 386231 [details] Customer documenting missing bindings during queue creation
Customer has new data showing that this issue may produce incorrect results.
Fixed at svn rev 940631: catch the Timeout exceptions and re-attempt the final disconnect until the timeout clears. On my desktop machine, "--file-size 5000" caused the exception before the fix, and executes cleanly after the fix, so that might be a good value to reproduce the issue and verify the fix.
bug appears on 1.2 fixed on -15 validated on RHEL5.5/RHEL4 i386 / x86_64 packages: # rpm -qa | grep -E '(qpid|openais|rhm)' | sort -u openais-0.80.6-16.el5_5.7 openais-devel-0.80.6-16.el5_5.7 python-qpid-0.7.946106-14.el5 qpid-cpp-client-0.7.946106-15.el5 qpid-cpp-client-devel-0.7.946106-15.el5 qpid-cpp-client-devel-docs-0.7.946106-15.el5 qpid-cpp-client-ssl-0.7.946106-15.el5 qpid-cpp-mrg-debuginfo-0.7.946106-14.el5 qpid-cpp-server-0.7.946106-15.el5 qpid-cpp-server-cluster-0.7.946106-15.el5 qpid-cpp-server-devel-0.7.946106-15.el5 qpid-cpp-server-ssl-0.7.946106-15.el5 qpid-cpp-server-store-0.7.946106-15.el5 qpid-cpp-server-xml-0.7.946106-15.el5 qpid-java-client-0.7.946106-9.el5 qpid-java-common-0.7.946106-9.el5 qpid-tools-0.7.946106-10.el5 rhm-docs-0.7.946106-5.el5 rh-tests-distribution-MRG-Messaging-qpid_common-1.6-53 ->VERIFIED
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: When attempting to create a persistent queue, the qpid-config utility occasionally failed when journal creation took too long.
Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1 +1 @@ -When attempting to create a persistent queue, the qpid-config utility occasionally failed when journal creation took too long.+When attempting to create a persistent queue, the qpid-config utility occasionally failed when journal creation took too long. This error does not occur anymore, and the utility no longer fails due to timeout.
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/RHSA-2010-0773.html