summaryrefslogtreecommitdiff
path: root/cpp/src/tests/failover_soak.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix hanging failover_soak test.Alan Conway2010-03-301-2/+2
| | | | | | | | | Explictly turn off PollableQueue bypass mode during initialize. Implicitly turning it off in PollableQueue::start() led to incorrectly turning off bypass in a PRE_INIT client when an offer was processed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@929276 13f79535-47bb-0310-9956-ffa450edef68
* Failover_soak was not detecting child exits properly, and soMichael Goulish2010-02-241-80/+79
| | | | | | | | | | | | | | | | | | 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
* Make failover_soak and its children adjustable as to Michael Goulish2009-11-131-40/+76
| | | | | | | | | | | | | | | | | | the number of brokers in the cluster, and the number of queues talking through the cluster during the test. resuming_receiver.cpp and replaying_sender.cpp now take command line args to control the queue name. If more than 1 queue is desired, failover_soak.cpp will start up N queue, each with its own sender and receiver. Queue names are now made unique with the failover_soak PID as part of their name. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@835746 13f79535-47bb-0310-9956-ffa450edef68
* Tidied up namespace usageAndrew Stitcher2009-09-091-61/+63
| | | | | | Miscelleneous whitespace fixes git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@813094 13f79535-47bb-0310-9956-ffa450edef68
* test checkin for mickMichael Goulish2009-07-201-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@795952 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1988: Applied patch from Mick Goulish to ensure all brokers are stopped ↵Gordon Sim2009-07-151-0/+1
| | | | | | even if there is a failure. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@794206 13f79535-47bb-0310-9956-ffa450edef68
* Set log level for forked brokers to notice+ rather than error+.Alan Conway2009-05-271-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@779198 13f79535-47bb-0310-9956-ffa450edef68
* Clean up temporary data directories in tests.Alan Conway2009-04-151-10/+4
| | | | | | | | ForkedBroker.cpp: create/delete tmp data directory if passed arg TMP_DATA_DIR. failover_soak.cpp, PartialFailure.cpp: use tmp data dir feature of ForkedBroker git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@765365 13f79535-47bb-0310-9956-ffa450edef68
* Fix issues when cluster is run with persistence enabled.Alan Conway2009-04-111-60/+1
| | | | | | | | | | - 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
* Add durability option to the cpp failover_soak test. Alan Conway2009-04-091-9/+31
| | | | | | | From Mick Goulish: https://issues.apache.org/jira/browse/QPID-1796, git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@763722 13f79535-47bb-0310-9956-ffa450edef68
* cpp/src/tests/failover_soak.cpp: allow it to run with all modules loaded or ↵Alan Conway2009-03-311-28/+37
| | | | | | | | | only the cluster module. cpp/src/tests/run_failover_soak: run failover_soak with all modules loaded by default. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@760458 13f79535-47bb-0310-9956-ffa450edef68
* configure.ac:Manuel Teira Paz2009-03-101-1/+10
| | | | | | | | | | | | | | - Add a SOCKLIBS definition, to define needed network libraries in Solaris src/tests/failover_soak.cpp - Replace usage of timersub with direct code, since timersub appears to be non-posix. src/tests/Makefile.am - Link against $(SOCKLIBS) when needed src/tests/* - Some qualifying needed for the Sun compiler git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@752019 13f79535-47bb-0310-9956-ffa450edef68
* cluster: fix delivery-property.exchange-name set on updated messages.Alan Conway2009-03-051-15/+13
| | | | | | | | | Logging improvements, useful for debugging: - qpid/SessionState.cpp: show frame bodies with command IDs. - assign cluster-wide id number to each Event. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@750456 13f79535-47bb-0310-9956-ffa450edef68
* cpp/src/tests/ForkedBroker.cpp: supress misleading exceptions with kill -9.Alan Conway2009-03-031-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749756 13f79535-47bb-0310-9956-ffa450edef68
* cluster::UpdateClient added missing error handling.Alan Conway2009-03-031-29/+87
| | | | | | | Minor improvements to failover_soak tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749730 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1707 Mick Goulish. Improved failover_soak codeAlan Conway2009-03-031-8/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749627 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1693: Improvements to failover soak test from mgoulish@redhat.comGordon Sim2009-02-261-40/+129
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748081 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1678 Mick Goulish: failover_soak using UUIDs for cluster name to avoid ↵Alan Conway2009-02-241-5/+6
| | | | | | clashes. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@747521 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1674 Mick Goulish: Fixes an error caused by a string going out of scope ↵Alan Conway2009-02-231-18/+21
| | | | | | just before ForkedBroker startup. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@747162 13f79535-47bb-0310-9956-ffa450edef68
* Prevent cluster module being loaded twice if module is also installed.Gordon Sim2008-11-251-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@720528 13f79535-47bb-0310-9956-ffa450edef68
* tests/failover_soak.cpp: Only load cluster module, reduces logging clutter.Alan Conway2008-11-241-3/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@720248 13f79535-47bb-0310-9956-ffa450edef68
* tests/failover_soak.cpp: add unique log-prefix per broker.Alan Conway2008-11-241-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@720246 13f79535-47bb-0310-9956-ffa450edef68
* tests/failover_soak: run a cluster with clients, kill and restart cluster ↵Alan Conway2008-11-191-0/+651
members, verify client fail-over. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@719055 13f79535-47bb-0310-9956-ffa450edef68