summaryrefslogtreecommitdiff
path: root/cpp/src/tests/run_failover_soak
diff options
context:
space:
mode:
authorMichael Goulish <mgoulish@apache.org>2010-02-24 05:07:13 +0000
committerMichael Goulish <mgoulish@apache.org>2010-02-24 05:07:13 +0000
commit761a6f7c4b91419e5c67e05e69a3eb0666532722 (patch)
tree56f1a80ea0ee8ebc68e7b16e01ee6f4026f59b06 /cpp/src/tests/run_failover_soak
parent75cb66e52f0b35b4b3bb0ca79608b8c31767fe28 (diff)
downloadqpid-python-761a6f7c4b91419e5c67e05e69a3eb0666532722.tar.gz
Failover_soak was not detecting child exits properly, and so
was not terminating when the sending and receiving clients had both exited. Also, the killing of a broker on every loop was excessive and caused test-generated problems that are not meaningful. I have changed the way the failover_soak process detects child exits, and made it only kill brokers about once every twenty times trhough its main loop. ( Using a random number to decide when to do it. ) This still results in a good number of broker-kills during a 500,000 message test. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@915673 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/run_failover_soak')
-rwxr-xr-xcpp/src/tests/run_failover_soak4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/tests/run_failover_soak b/cpp/src/tests/run_failover_soak
index 69551a51c2..c276e9cc2f 100755
--- a/cpp/src/tests/run_failover_soak
+++ b/cpp/src/tests/run_failover_soak
@@ -26,12 +26,12 @@ host=127.0.0.1
unset QPID_NO_MODULE_DIR # failover_soak uses --module-dir, dont want clash
MODULES=${MODULES:-$moduledir}
-MESSAGES=${MESSAGES:-1000000}
+MESSAGES=${MESSAGES:-500000}
REPORT_FREQUENCY=${REPORT_FREQUENCY:-20000}
VERBOSITY=${VERBOSITY:-10}
DURABILITY=${DURABILITY:-0}
N_QUEUES=${N_QUEUES:-1}
-N_BROKERS=${N_BROKERS:-3}
+N_BROKERS=${N_BROKERS:-4}
rm -f soak-*.log
exec ./failover_soak $MODULES ./declare_queues ./replaying_sender ./resuming_receiver $MESSAGES $REPORT_FREQUENCY $VERBOSITY $DURABILITY $N_QUEUES $N_BROKERS