Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 513641

Summary: qpid-config gives error "Failed: ()" when creating persistent queue
Product: Red Hat Enterprise MRG Reporter: Yuri <yuri.martinez>
Component: python-qpidAssignee: Nuno Santos <nsantos>
Status: CLOSED ERRATA QA Contact: Jiri Kolar <jkolar>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.1.1CC: aortega, cctrieloff, jkolar, mcressma, tao, tross
Target Milestone: 1.3   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-14 16:14:31 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:
Attachments:
Description Flags
Customer documenting missing bindings during queue creation none

Description Yuri 2009-07-24 15:38:35 UTC
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.

Comment 2 Mike Cressman 2010-01-22 19:50:40 UTC
Created attachment 386231 [details]
Customer documenting missing bindings during queue creation

Comment 3 Mike Cressman 2010-01-22 19:59:58 UTC
Customer has new data showing that this issue may produce incorrect results.

Comment 4 Nuno Santos 2010-05-03 21:36:42 UTC
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.

Comment 6 Jiri Kolar 2010-09-22 12:26:09 UTC
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

Comment 7 Douglas Silas 2010-10-07 15:29:16 UTC
    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.

Comment 8 Jaromir Hradilek 2010-10-13 16:45:00 UTC
    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.

Comment 10 errata-xmlrpc 2010-10-14 16:14:31 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/RHSA-2010-0773.html