/[Apache-SVN]
ViewVC logotype

Revision 1561206


Jump to revision: Previous Next
Author: aconway
Date: Fri Jan 24 21:54:59 2014 UTC (10 years, 3 months ago)
Changed paths: 13
Log Message:
QPID-5513: HA backup fails if number of replicated queues exceeds number of channels.

The problem:
- create cluster of 2 brokers.
- create more than 32768 queues (exceeds number of channels on a connection)
- backup exits with critical error but
- client creating queues receives no error, primary continues with unreplicated queue.

The solution: Primary raises an error to the client if it attempts to create
queues in excess of the channel limit. The queue is not created on primary
or backup, primary and backup continue as normal.

In addition: raised the channel limit from 32k to 64k. There was no reason for
the smaller limit. See discussion: http://qpid.2158936.n2.nabble.com/CHANNEL-MAX-and-CHANNEL-HIGH-BIT-question-tp7603121p7603138.html

New unit test to reproduce the issue, must create > 64k queues.

Other minor improvements:
- brokertest framework doesn't override --log options in the arguments.
- increased default heartbeat in test framework for tests that have busy brokers.

Changed paths

Path Details
Directoryqpid/trunk/qpid/cpp/src/CMakeLists.txt modified , text changed
Directoryqpid/trunk/qpid/cpp/src/qpid/client/Connection.h modified , text changed
Directoryqpid/trunk/qpid/cpp/src/qpid/framing/amqp_types.h modified , text changed
Directoryqpid/trunk/qpid/cpp/src/qpid/ha/Backup.cpp modified , text changed
Directoryqpid/trunk/qpid/cpp/src/qpid/ha/Primary.cpp modified , text changed
Directoryqpid/trunk/qpid/cpp/src/qpid/ha/Primary.h modified , text changed
Directoryqpid/trunk/qpid/cpp/src/qpid/ha/PrimaryQueueLimits.h added
Directoryqpid/trunk/qpid/cpp/src/qpid/ha/QueueReplicator.cpp modified , text changed
Directoryqpid/trunk/qpid/cpp/src/tests/CMakeLists.txt modified , text changed
Directoryqpid/trunk/qpid/cpp/src/tests/brokertest.py modified , text changed
Directoryqpid/trunk/qpid/cpp/src/tests/ha_test.py modified , text changed
Directoryqpid/trunk/qpid/cpp/src/tests/ha_test_max_queues.cpp added
Directoryqpid/trunk/qpid/cpp/src/tests/ha_tests.py modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26