From 1e20951003db44b71298649f674664a9e1ba26c5 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 1 Dec 2010 21:33:12 +0000 Subject: Modified cluster_tests causes broker shut down with invalid-argument error. Described in https://bugzilla.redhat.com/show_bug.cgi?id=655078. The management agent's deleted-object list was not being replicated to new members joining the cluster, so management generated fewer deleted object notifications on the newer member, causing it to fail with an invalid-argument error. The list is now being replicated correctly. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041181 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/cluster_tests.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cpp/src/tests') diff --git a/cpp/src/tests/cluster_tests.py b/cpp/src/tests/cluster_tests.py index 9f70121b74..99474da2f2 100755 --- a/cpp/src/tests/cluster_tests.py +++ b/cpp/src/tests/cluster_tests.py @@ -298,7 +298,7 @@ class LongTests(BrokerTest): receiver.stop() for i in range(i, len(cluster)): cluster[i].kill() - def test_management(self): + def test_management(self, args=[]): """Stress test: Run management clients and other clients concurrently.""" class ClientLoop(StoppableThread): @@ -353,7 +353,7 @@ class LongTests(BrokerTest): StoppableThread.stop(self) # def test_management - args = ["--mgmt-pub-interval", 1] # Publish management information every second. + args += ["--mgmt-pub-interval", 1] # Publish management information every second. # Use store if present. if BrokerTest.store_lib: args +=["--load-module", BrokerTest.store_lib] cluster = self.cluster(3, args) @@ -402,6 +402,9 @@ class LongTests(BrokerTest): for c in chain(mclients, *clients): c.stop() + def test_management_qmf2(self): + self.test_management(args=["--mgmt-qmf2=yes"]) + class StoreTests(BrokerTest): """ Cluster tests that can only be run if there is a store available. -- cgit v1.2.1