diff options
| author | Alan Conway <aconway@apache.org> | 2013-08-05 19:33:35 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2013-08-05 19:33:35 +0000 |
| commit | 8b4ce07e63b3ed12b43ae82fc487657c6e18f5e4 (patch) | |
| tree | 7961e97040227d8253bb8cdc6bf7de11ec92d8de /qpid/cpp/src/tests/ha_test.py | |
| parent | 866bf57249e41266cd713a5f73e3d18d216fad31 (diff) | |
| download | qpid-python-8b4ce07e63b3ed12b43ae82fc487657c6e18f5e4.tar.gz | |
QPID-4327: HA Handle brokers joining and leaving during a transaction.
During a transaction:
- A broker leaving aborts the transaction.
- A broker joining does not participate in the transaction
- but does receive the results of the TX via normal replication.
Clean up tx-queues when the transaction completes.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1510678 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/ha_test.py')
| -rwxr-xr-x | qpid/cpp/src/tests/ha_test.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/qpid/cpp/src/tests/ha_test.py b/qpid/cpp/src/tests/ha_test.py index cceb9795eb..ab63602655 100755 --- a/qpid/cpp/src/tests/ha_test.py +++ b/qpid/cpp/src/tests/ha_test.py @@ -48,6 +48,9 @@ class QmfAgent(object): address, client_properties={"qpid.ha-admin":1}, **kwargs) self._agent = BrokerAgent(self._connection) + def get_queues(self): + return [q.values['name'] for q in self._agent.getAllQueues()] + def __getattr__(self, name): a = getattr(self._agent, name) return a @@ -107,7 +110,7 @@ class HaBroker(Broker): ha_port = ha_port or HaPort(test) args = copy(args) args += ["--load-module", BrokerTest.ha_lib, - "--log-enable=trace+:ha::", # FIXME aconway 2013-07-29: debug + "--log-enable=debug+:ha::", # Non-standard settings for faster tests. "--link-maintenance-interval=0.1", # Heartbeat and negotiate time are needed so that a broker wont @@ -276,8 +279,8 @@ class HaCluster(object): @s_args: args for specific brokers: s_args[i] for broker i. """ self.test = test - self.args = args - self.s_args = s_args + self.args = copy(args) + self.s_args = copy(s_args) self.kwargs = kwargs self._ports = [HaPort(test) for i in xrange(n)] self._set_url() |
