Description of problem: If an exchange is declared as durable, the broker will fail on subsequent recovery. This is true of any exchange type supplied by a plug-in. Version-Release number of selected component (if applicable): 1.1.1 How reproducible: 100% Steps to Reproduce: 1. Start a broker with the store and xml modules loaded. 2. execute the command "qpid-config add exchange xml myxml" 3. restart the broker Actual results: The broker will fail with: terminate called after throwing an instance of 'qpid::broker::UnknownExchangeTypeException' Expected results: Success, and recovery of the "myxml" exchange. Additional info:
This is caused by the fact that the broker recovers the store before it loads plug-in modules. At the time the xml exchange is recovered, the type is as yet unknown.
Sorry, here are the correct steps to reproduce: Steps to Reproduce: 1. Start a broker with the store and xml modules loaded. 2. execute the command "qpid-config add exchange xml myxml --durable" 3. restart the broker
Added handling for this case as r777096 on qpid trunk and r3390 on store. Moved registration for the xml- and replication- exchanges to earlyInitialise() to allow instances of these types to be recovered (r777073).
The issue has been fixed, verified on RHEL 4.8 / 5.5 i386 / x86_64 on packages [root@dhcp-lab-182 ~]# rpm -qa | grep qpid | sort -u python-qpid-0.7.917557-4.el5 qpid-cpp-client-0.7.916826-2.el5 qpid-cpp-client-devel-0.7.916826-2.el5 qpid-cpp-client-devel-docs-0.7.916826-2.el5 qpid-cpp-client-rdma-0.7.916826-2.el5 qpid-cpp-client-ssl-0.7.916826-2.el5 qpid-cpp-mrg-debuginfo-0.7.916826-2.el5 qpid-cpp-server-0.7.916826-2.el5 qpid-cpp-server-cluster-0.7.916826-2.el5 qpid-cpp-server-devel-0.7.916826-2.el5 qpid-cpp-server-rdma-0.7.916826-2.el5 qpid-cpp-server-ssl-0.7.916826-2.el5 qpid-cpp-server-store-0.7.916826-2.el5 qpid-cpp-server-xml-0.7.916826-2.el5 qpid-dotnet-0.4.738274-2.el5 qpid-java-client-0.7.918215-1.el5 qpid-java-common-0.7.918215-1.el5 qpid-tests-0.7.917717-4.el5 qpid-tools-0.7.917557-4.el5 rh-qpid-cpp-tests-0.7.916826-2.el5 ruby-qpid-0.7.904654-1.el5 -> 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: Cause: Restart broker with both store and XML exchange loaded and with persistent XML messages. Consequence: Broker fails to start. Fix: The order of recovery for the store and XML exchange was changed. Consequence: The Broker starts as expected.
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,4 +1 @@ -Cause: Restart broker with both store and XML exchange loaded and with persistent XML messages. +Due to incorrect order of recovery procedures, once restarted, a broker with both the store and XML modules loaded and with persistent XML messages enabled was unable to start again. With this update, the order of recovery procedures for the store and XML exchange was altered, and the broker now starts as expected.-Consequence: Broker fails to start. -Fix: The order of recovery for the store and XML exchange was changed. -Consequence: The Broker starts as expected.
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