summaryrefslogtreecommitdiff
path: root/cpp/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix regression: close shadow connections belonging to brokers that have left ↵Alan Conway2009-04-142-1/+60
| | | | | | the cluster. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@764783 13f79535-47bb-0310-9956-ffa450edef68
* Trivial fix for gcc 4.3 compiler (F10) "may be used uninitialized" errorKim van der Riet2009-04-131-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@764424 13f79535-47bb-0310-9956-ffa450edef68
* Fix issues when cluster is run with persistence enabled.Alan Conway2009-04-1114-106/+468
| | | | | | | | | | - 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-094-19/+54
| | | | | | | 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-312-32/+39
| | | | | | | | | 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
* Lib tweaksStephen D. Huston2009-03-2717-164/+164
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@759318 13f79535-47bb-0310-9956-ffa450edef68
* Enable SocketProxy portability to Windows; fixes QPID-1765Stephen D. Huston2009-03-261-41/+70
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@758852 13f79535-47bb-0310-9956-ffa450edef68
* Fix some bashishms in test scriptsManuel Teira Paz2009-03-172-11/+24
| | | | | | | | Replace usage of seq (not widely available) with a while loop. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@755161 13f79535-47bb-0310-9956-ffa450edef68
* In testLoggerFormat:Manuel Teira Paz2009-03-171-1/+1
| | | | | | | | | | Change Logger::FUNCTION test to be aware that not all compilers may implement a __func__ macro -> Compare directly with BOOST_CURRENT_FUNCTION result git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@755160 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1741: Fix for later versions of boost test API (from Jan Sarenik)Gordon Sim2009-03-171-1/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@755152 13f79535-47bb-0310-9956-ffa450edef68
* Changes to build DLLs instead of static libs on Windows; primarily added ↵Stephen D. Huston2009-03-1225-447/+560
| | | | | | decorators to exported names. Fixes QPID-1673 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@753014 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1729: trivial cleanup for shutdown in the case that perftest loses ↵Gordon Sim2009-03-121-2/+4
| | | | | | connection(s). git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@752937 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1724: Allow replication events to be shared across multiple federations ↵Gordon Sim2009-03-102-1/+131
| | | | | | bridges. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@752290 13f79535-47bb-0310-9956-ffa450edef68
* Added cluster ACL test, disabled for now as it exposes a memory leak in the ↵Alan Conway2009-03-101-35/+48
| | | | | | SASL client. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@752154 13f79535-47bb-0310-9956-ffa450edef68
* configure.ac:Manuel Teira Paz2009-03-108-11/+23
| | | | | | | | | | | | | | - 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
* Fix cluster TTL: replicte expiry information to newcomers.Alan Conway2009-03-092-4/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@751760 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1721: Fixes for replication between clusters when new members are addedGordon Sim2009-03-092-2/+130
| | | | | | | | | | * suppress event generation during node catch up * ensure sequence counters used for duplicate detection are synchronised in both primary and dr clusters when new members join * connect queue with the event manager within queue registry rather than adapter as the latter path is not used for catchup git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@751719 13f79535-47bb-0310-9956-ffa450edef68
* Ack outstanding messages before closingGordon Sim2009-03-091-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@751713 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1719: extra test for federated cluster (includes node failure which ↵Gordon Sim2009-03-062-2/+27
| | | | | | requires a wait so only run on make check-long) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@750989 13f79535-47bb-0310-9956-ffa450edef68
* Moved a variable inside an assertion to avoid unused variable error when the ↵Jonathan Robie2009-03-061-2/+1
| | | | | | assertion is undefined. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@750930 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1719: Ensure management object id remain in sync across cluster.Gordon Sim2009-03-061-5/+35
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@750910 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1718: Ensure that cancellation caused by e.g. ↵Gordon Sim2009-03-051-0/+18
| | | | | | SubscriptionManager::get() doesn't close dispatch queue. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@750622 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1717: Check that target queue for replication events exists before ↵Gordon Sim2009-03-051-0/+6
| | | | | | attempting to process it. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@750586 13f79535-47bb-0310-9956-ffa450edef68
* cluster: fix delivery-property.exchange-name set on updated messages.Alan Conway2009-03-053-17/+17
| | | | | | | | | 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
* QPID-1710: update test inline with modified method signature.Gordon Sim2009-03-041-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749951 13f79535-47bb-0310-9956-ffa450edef68
* cpp/src/tests/ForkedBroker.cpp: supress misleading exceptions with kill -9.Alan Conway2009-03-032-4/+3
| | | | 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-034-38/+96
| | | | | | | 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
* Replicate connection decoder fragments to new members.Alan Conway2009-03-022-2/+2
| | | | | | | | | | | | Refactoring: - Merge Decoder into ConnectionMap. - Process cluster controls in event queue thread. - Use counter not pointer for connection ID, avoid re-use. - Do all processing in event queue thread to avoid races (temporary pending performance measurements) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749473 13f79535-47bb-0310-9956-ffa450edef68
* Remove -Wno-missing-field-initializers which is not supported by gcc3.4Andrew Stitcher2009-03-022-3/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749432 13f79535-47bb-0310-9956-ffa450edef68
* - Reworked DispatchHandler state machine to eliminate race conditionsAndrew Stitcher2009-03-022-11/+68
| | | | | | | | | | | particularly when deleting a DispatchHandle - Reworked Poller interrupt mechanism eliminating locking problems and to support DispatchHandler changes - Beefed up the DispatchHandler test program so that it's a fair torture test of the DispatchHandler code git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749406 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1705: added unit test for heartbeat firing after connection has failed overGordon Sim2009-03-021-0/+85
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749313 13f79535-47bb-0310-9956-ffa450edef68
* Sorry, forgot a crucial line in my last 'fix'!Gordon Sim2009-02-271-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748640 13f79535-47bb-0310-9956-ffa450edef68
* Fix test to account for failure after last message has been delivered, but ↵Gordon Sim2009-02-271-4/+8
| | | | | | before the session and connection are closed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748624 13f79535-47bb-0310-9956-ffa450edef68
* Add browse option, useful for ad-hoc testing.Gordon Sim2009-02-261-6/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748252 13f79535-47bb-0310-9956-ffa450edef68
* Added a couple of extra options that are useful in ad-hoc testing.Gordon Sim2009-02-261-7/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748222 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
* Add FrameDecoder unit test, update comments in Cluster.h/cpp.Alan Conway2009-02-252-1/+75
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@747947 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1685: Fixed ring queue policyGordon Sim2009-02-251-0/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@747744 13f79535-47bb-0310-9956-ffa450edef68
* Replace struct name to avoid clashing with similarly named struct in ↵Gordon Sim2009-02-251-3/+3
| | | | | | ClientSessionTest. This was causing seg fault when -O0 was specified in CXXFLAGS. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@747709 13f79535-47bb-0310-9956-ffa450edef68
* Fixed issue with producer flow control in a cluster.Alan Conway2009-02-243-5/+4
| | | | | | | | | | | | | | | | | | Producer flow control uses a Timer and other clock-based calculations to send flow control commands. These commands are not predictably ordered from the clusters point of view. Added getClusterOrderProxy() to SessionState. In a cluster it returns a proxy that defers sending a command to the client until it is multicast to the cluster. In a stand alone broker it is just the normal proxy. Updated producer flow control to use this proxy. Cluster flow control is turned off in shadow connections. Only the directly connected node does flow control calculations and multicasts the commands to send. All nodes sending of the commands thru SessionState to ensure consistent session state (e.g. command numbering.) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@747528 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1678 Mick Goulish: failover_soak using UUIDs for cluster name to avoid ↵Alan Conway2009-02-242-8/+9
| | | | | | 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-232-21/+24
| | | | | | just before ForkedBroker startup. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@747162 13f79535-47bb-0310-9956-ffa450edef68
* Commit accepts of control messages (else they are left on queue)Gordon Sim2009-02-201-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@746197 13f79535-47bb-0310-9956-ffa450edef68
* Merged win-pollable-condition branch changes 743545:746056 into trunkStephen D. Huston2009-02-201-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@746061 13f79535-47bb-0310-9956-ffa450edef68
* Ensure pythonpath is set correctlyGordon Sim2009-02-191-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@745834 13f79535-47bb-0310-9956-ffa450edef68
* Fixed for cases where --subs > 1 and --iterations > 1Gordon Sim2009-02-181-1/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@745590 13f79535-47bb-0310-9956-ffa450edef68
* Added tests for federated links to and from a clusterGordon Sim2009-02-183-3/+134
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@745486 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1667: Test case (fix was submitted in previous rev)Gordon Sim2009-02-171-0/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@745125 13f79535-47bb-0310-9956-ffa450edef68
* Ensure that the queue depth in bytes remains accurate for LVQ. This also ↵Gordon Sim2009-02-131-0/+22
| | | | | | ensures that there are no underflow exceptions from the policy that keeps this count. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@744222 13f79535-47bb-0310-9956-ffa450edef68