Hide Forgot
Description of problem: When simulating a network failure, dynamically created bridge queues are not always recreated for dynamic federation routes. Version-Release number of selected component (if applicable):qpid-cpp-server-0.7.946106-28_ptc_hotfix_5_v2.el5 How reproducible: 100% Steps to Reproduce: 1. Set up 2 brokers on different IP addresses 2. Set up dynamic federation between the 2 brokers 3. Verify federation functions 3. Use iptables on the source broker to reset the existing federation link (e.g. iptables -I INPUT -p tcp -s <destination broker ip> --dport <source broker port> -j REJECT --reject-with tcp-reset) 4. Send a message to the source broker using a routing key that should result in the message being federated to the destination broker - this should fail due to iptables 4. Wait a short amount of time (maybe 10 seconds), then delete the iptables rule i.e. re-open the port 5. Attempt to send more messages to the source broker for federation Actual results: dynamically created bridge is deleted and not recreated. No messages go across the federation link. qpid-route commands show the link is operational and the route exists. qpid-stat -q shows no bridge queue and qpid-stat -u shows no subscription. Expected results: dynamically created bridge queue should be recreated and messages should be able to flow across the link Additional info: It appears that the destination broker (link owner) is attempting to call session.attach again with the same session id. I saw this in the source broker's log: Apr 18 05:50:32 agoldste qpidd[32576]: 2011-04-18 05:50:32 error Channel exception: session-busy: Session already attached: anonymous.f891f9df-f957-4079-b0b4-a59339d81592 (qpid/broker/SessionManager.cpp:55) Apr 18 05:50:32 agoldste qpidd[32576]: 2011-04-18 05:50:32 error Channel exception: not-attached: Channel 1 is not attached (qpid/amqp_0_10/SessionHandler.cpp:39) I'm guessing the destination broker was attempting to recreated the bridge queue and subscription, but because the session.attach command failed, it gave up.
See https://issues.apache.org/jira/browse/QPID-3352 for details and proposed patch
Fixed upstream in revision 1145706 by Jason Dillaman.
Created attachment 783472 [details] shell reproducer
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