diff options
| author | Alan Conway <aconway@apache.org> | 2009-04-11 14:29:04 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-04-11 14:29:04 +0000 |
| commit | 769416f61343b6458529f023164b6ebb837eec3c (patch) | |
| tree | d38809248e0d8814734fa89bd097774fa60cc5dd /cpp/src/tests/start_cluster | |
| parent | 99d89b32f80599872df73a8f1999acd57aa37748 (diff) | |
| download | qpid-python-769416f61343b6458529f023164b6ebb837eec3c.tar.gz | |
Fix issues when cluster is run with persistence enabled.
- Handle partial failures (e.g. due to disk error): failing brokers shut down, others continue.
- Enable persistence in cluster tests.
- Correct message status in DeliveryRecord updates.
- Remove qpid.update queue when update complete - avoid it becoming persistent
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@764204 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/start_cluster')
| -rwxr-xr-x | cpp/src/tests/start_cluster | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/cpp/src/tests/start_cluster b/cpp/src/tests/start_cluster index 053b23da33..585ba082d5 100755 --- a/cpp/src/tests/start_cluster +++ b/cpp/src/tests/start_cluster @@ -28,15 +28,17 @@ with_ais_group() { echo $* | newgrp ais } -rm -f cluster*.log -SIZE=${1:-1}; shift +rm -f cluster*.log cluster.ports qpidd.port + +SIZE=${1:-3}; shift CLUSTER=`pwd` # Cluster name=pwd, avoid clashes. -OPTS="-d --no-module-dir --load-module ../.libs/cluster.so --cluster-name=$CLUSTER --no-data-dir --auth=no $@" +OPTS="-d --no-module-dir --load-module ../.libs/cluster.so --cluster-name=$CLUSTER --auth=no $@" for (( i=0; i<SIZE; ++i )); do - PORT=`with_ais_group ../qpidd -p0 --log-to-file=cluster$i.log $OPTS` || exit 1 + DDIR=`mktemp -d /tmp/start_cluster.XXXXXXXXXX` + PORT=`with_ais_group ../qpidd -p0 --log-to-file=cluster$i.log $OPTS --data-dir=$DDIR` || exit 1 echo $PORT >> cluster.ports done -head cluster.ports > qpidd.port # First member's port for tests. +head -n 1 cluster.ports > qpidd.port # First member's port for tests. |
