summaryrefslogtreecommitdiff
path: root/cpp/src/tests/cluster_tests.py
Commit message (Collapse)AuthorAgeFilesLines
* Update cluster store status with a single atomic write() operation.Alan Conway2010-04-011-25/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@930055 13f79535-47bb-0310-9956-ffa450edef68
* Removed config-sequence test from cluster_tests.py, functionality was removed.Alan Conway2010-03-311-23/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@929685 13f79535-47bb-0310-9956-ffa450edef68
* Fix error in cluster_tests.py test_join_sub_sizeAlan Conway2010-03-311-1/+3
| | | | | | | Was not setting cluster-size so not testing the intended behaviour. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@929660 13f79535-47bb-0310-9956-ffa450edef68
* Fix intermittent failure of cluster_tests.py test_last_store_clean.Alan Conway2010-03-301-1/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@929272 13f79535-47bb-0310-9956-ffa450edef68
* Fix race condition causing deadlock in cluster_tests.py, failover_test.Alan Conway2010-03-261-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@927847 13f79535-47bb-0310-9956-ffa450edef68
* Re-eneable run_long_cluster_tests.Alan Conway2010-03-251-19/+17
| | | | | | | | | | Reduced duration to 2 minutes per test. Reduced load to avoid timeouts - Fewer concurrent clients on test_management. - Delay in ErrorGenerator for test_failover. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@927509 13f79535-47bb-0310-9956-ffa450edef68
* Fix resource leaks in cluster_tests, add 5 minute test run to make check-long.Alan Conway2010-03-241-6/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@927154 13f79535-47bb-0310-9956-ffa450edef68
* New cluster member pushes store when joining an active cluster.Alan Conway2010-03-121-13/+57
| | | | | | | | | | | | | | | | | | | Previously a broker with a clean store would not be able to join an active cluster because the shtudown-id did not match. This commit ensures that when a broker joins an active cluster, it always pushes its store regardless of status. Clean/dirty status is only compared when forming an initial cluster. This change required splitting initialization into two phases: PRE_INIT: occurs in the Cluster ctor during early-initialize. This phase determines whether or not to push the store. INIT: occurs after Cluster::initialize and does the remaining initialization chores. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@922412 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2436: Fix cluster update of remote agents.Alan Conway2010-03-081-10/+14
| | | | | | | | | The v2key of cluster agents was not being passed as part of a cluster update. This meant they were not being associated with the correct shadow connections on the updatee. This caused inconsistencies that shut down the new broker. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@920414 13f79535-47bb-0310-9956-ffa450edef68
* Extended cluster_tests.test_management exposes a bug.Alan Conway2010-03-031-23/+74
| | | | | | | | | - kill and start brokers with clients running. - added qpid-stat -b and testagent clients - disabled in src/tests/cluster_tests.fail till bug is fixed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@918674 13f79535-47bb-0310-9956-ffa450edef68
* Last member of a cluster always has clean store.Alan Conway2010-02-251-14/+40
| | | | | | | | | | When a cluster is reduced to a single broker, it marks its store as clean regardless of how it is shut down. If we're down to a single member we know we want to use its store to recover as there are no others. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@916475 13f79535-47bb-0310-9956-ffa450edef68
* Test for management + cluster: run management tools in parallel with regular ↵Alan Conway2010-01-271-5/+67
| | | | | | | | | | clients. cluster_tests.py: added LongTests.test_management brokertest.py: optionally drain test process output to *.out/*.err files. On by default. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@903868 13f79535-47bb-0310-9956-ffa450edef68
* Fix error in cluster_tests.pyAlan Conway2010-01-061-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@896542 13f79535-47bb-0310-9956-ffa450edef68
* Minor cluster test fixes.Alan Conway2010-01-061-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@896540 13f79535-47bb-0310-9956-ffa450edef68
* Added config-seq counter to track config changes since cluster init.Alan Conway2010-01-061-1/+24
| | | | | | | | Config-seq is recorded persitently to help identify best store when recovering from total failure. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@896538 13f79535-47bb-0310-9956-ffa450edef68
* Don't hold up broker initialization for cluster initialization.Alan Conway2010-01-061-9/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@896536 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2266: error sending update: Enqueue capacity threshold exceededAlan Conway2009-12-111-0/+28
| | | | | | | | | Fix for the problem with a test to verify that messages going to the store have the same headers and content-size for an updatee or a broker that receives the publish directly. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@889813 13f79535-47bb-0310-9956-ffa450edef68
* Cluster consistency: check for no clean store condition.Alan Conway2009-11-261-2/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@884612 13f79535-47bb-0310-9956-ffa450edef68
* Consistency checks for persistent cluster startup.Alan Conway2009-11-251-14/+35
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@884226 13f79535-47bb-0310-9956-ffa450edef68
* Verify stored cluster-id matches agreed cluster-id when joining a persistent ↵Alan Conway2009-11-241-0/+11
| | | | | | cluster. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@883910 13f79535-47bb-0310-9956-ffa450edef68
* Added flow control to failover_test in cluster_tests.py.Alan Conway2009-11-241-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@883909 13f79535-47bb-0310-9956-ffa450edef68
* Support for restarting a persistent cluster.Alan Conway2009-11-241-52/+53
| | | | | | | | | | | Option --cluster-size=N: members wait for N members before recovering store. Stores marked as clean/dirty. Automatically recover from clean store on restart. Stores marked with UUID to detect errors. Not yet implemented: consistency checks, manual recovery from all dirty stores. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@883842 13f79535-47bb-0310-9956-ffa450edef68
* Added cluster option --cluster-size.Alan Conway2009-11-181-8/+40
| | | | | | | | --cluster-size=N means that during start-up the cluster waits to have N members before accepting any clients. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@881839 13f79535-47bb-0310-9956-ffa450edef68
* Integrated InitialStatusMap into cluster code.Alan Conway2009-11-171-3/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@881423 13f79535-47bb-0310-9956-ffa450edef68
* changed address syntax to permit more complex subjects, added escaping, ↵Rafael H. Schloming2009-11-131-2/+2
| | | | | | improved error reporting git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@835879 13f79535-47bb-0310-9956-ffa450edef68
* Made cluster_tests.py ClusterTests.test_failover configurable to run for any ↵Alan Conway2009-11-121-20/+9
| | | | | | | | length of time. Also incorporated error generators to give a good stress test. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@835547 13f79535-47bb-0310-9956-ffa450edef68
* Moved brokertest.py to python directory.Alan Conway2009-11-101-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@834668 13f79535-47bb-0310-9956-ffa450edef68
* Fixed test_failover, added ErrorGenerator with test.Alan Conway2009-11-101-10/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@834662 13f79535-47bb-0310-9956-ffa450edef68
* Added message store recovery tests to cluster_tests.Alan Conway2009-11-091-2/+45
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@834193 13f79535-47bb-0310-9956-ffa450edef68
* Filled out process management in python brokertest framework.Alan Conway2009-11-091-387/+27
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@834124 13f79535-47bb-0310-9956-ffa450edef68
* Remove incorrect import.Alan Conway2009-11-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@832085 13f79535-47bb-0310-9956-ffa450edef68
* Python framework for tests that start multiple brokers.Alan Conway2009-10-301-4/+36
| | | | | | | | | | | | This is intended to become a general framework for python scripting tests that start multiple brokers and executable clients, e.g. cluster and federation tests. This framework is intended to replace testlib.py once there is equivalent test coverage from new-style tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@831350 13f79535-47bb-0310-9956-ffa450edef68
* Moved python cluster tests to new python test runnerKim van der Riet2009-08-121-15/+88
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@803599 13f79535-47bb-0310-9956-ffa450edef68
* Added python long cluster test outline for long tests and soak tests. Also ↵Kim van der Riet2009-07-071-0/+332
added check for python tools before tests to stop make distcheck failures. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@791945 13f79535-47bb-0310-9956-ffa450edef68