summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* QPID-3329: Configure C++ client connections to replace url-addresses rather ↵Alan Conway2011-06-302-9/+13
| | | | | | than merging new addresses with old git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1141493 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Add reconnect-timeout to test clients to prevent client hangs.Alan Conway2011-06-272-7/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1140179 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3129: cluster_tests.LongTests.test_failover hangsAlan Conway2011-06-202-5/+15
| | | | | | | | | Problem: the first broker in the cluster could be killed before the receiver was connected, so the receiver could not fail-over, it didn't have a failover update. Fix: wait for the first message to be received by the receiver before starting the broker-kill loop. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1137657 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3280: Performance problem with TTL messages.Alan Conway2011-06-153-7/+142
| | | | | | | | | | | | When sending a large number of messages with nonzero TTLs to a cluster, overall message throughput drops by around 20-30% compared to messages with TTL 0. The previous approach to TTL in the cluster is replaced with a simpler "cluster clock". Also QueueCleaner is executed in the cluster timer, and modified to be deterministic in a cluster. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1136170 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix sporadic failures in cluster_tests.py test_management.Alan Conway2011-06-152-4/+8
| | | | | | | | Fix timing problems with broker shut down in this test. Kill all brokers in the test, rather than leaving the last 2 running to be cleaned up by the harness. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1136166 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3200: Add new method to session for cumulative acknowledgement upto ↵Gordon Sim2011-06-151-0/+40
| | | | | | (and including) a specified message git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1136003 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Increase join timeout in brokertest.py, was causing spurious failures.Alan Conway2011-06-141-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1135786 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Removed reconnect-timeout from tests, was causing spurious failures.Alan Conway2011-06-142-7/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1135768 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix bugs in test_failover test and the brokertest.py framework.Alan Conway2011-06-142-17/+30
| | | | | | | - brokertest.py was not reliably detecting failed processes. - test_failover was not setting the reconnect option on its connections. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1135722 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3284 - There was a fix missing in one of the test files.Ted Ross2011-06-131-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1135259 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3225: Allow exclusivity (for subscription queue and subscription ↵Gordon Sim2011-06-131-0/+32
| | | | | | itself) to be controlled through address properties. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1135165 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3298: don't include the internal federation related args in the biding ↵Gordon Sim2011-06-091-3/+10
| | | | | | for headers exchange git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1133942 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3284: Eliminated warnings from gcc 4.6 compilerAndrew Stitcher2011-06-071-2/+1
| | | | | | | | - Removed a bunch of variables set but not further used. - Rejigged some asserts which would now have unused vars if compiler -DNDEBUG git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1133166 13f79535-47bb-0310-9956-ffa450edef68
* Refactor socket connect calls to take a string portAndrew Stitcher2011-05-261-1/+3
| | | | | | This is used used to implement unix domain sockets - QPID-3281 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1128064 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3278: pass container for expired messages by referenceGordon Sim2011-05-261-1/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1127901 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2905 - Code modifications to enable Windows builds with the mingw32 ↵Ted Ross2011-05-182-1/+7
| | | | | | compiler. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1104662 13f79535-47bb-0310-9956-ffa450edef68
* Remove support for archaic Boost version 1_32 ( 103200 ).Michael Goulish2011-05-171-74/+0
| | | | | | | ( As promised, long ago. ) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1104291 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3244: unit test for the fix.Kenneth Anthony Giusti2011-05-052-0/+90
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1099979 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3243: unit test to verify fix.Kenneth Anthony Giusti2011-05-052-27/+96
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1099957 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3243: correctly use --max-queue-count value to compute flow limit.Kenneth Anthony Giusti2011-05-033-1/+23
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1099278 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3239Michael Goulish2011-05-021-12/+27
| | | | | | | | | qpid-tool is no longer printing status of clustered broker links, so this test code (which is used by several tests) hangs. so make it look at the "transport" field instead. also -- if this test is run on a machine that is clustered with several others -- and if there is another copy of the test running on one of the other machines -- the brokers on the different machinnes will form One Big Cluster. append the box-name to the cluster name. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1098704 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3235: clustered qpidd broker fails ocassionly the ↵Alan Conway2011-04-291-1/+7
| | | | | | | | | | | | cluster_tests.ShortTests.test_route_update Inconsistent stats changes on a Link were causing cluster inconsistency. Fix is to disable those stats changes in a cluster. Updated cluster_tests.py to reliably generate the error every time without the fix. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1097838 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3076: enable flow control for clustered broker configurations.Kenneth Anthony Giusti2011-04-283-23/+162
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1097432 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3222: Prevent ttl overflow; also adds equality operators for ↵Gordon Sim2011-04-261-0/+14
| | | | | | qpid::messaging::Duration. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1096751 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3215: cached exchange reference can cause cluster inconsistencies if ↵Alan Conway2011-04-191-0/+48
| | | | | | | | | | | | | | | | | exchange is deleted/recreated SemanticState::route() uses a simple cache variable to avoid looking up the exchange for every message. However if the exchange in question is deleted, even if then recreated, this can cause inconsistencies in a cluster. Even in a stand-alone broker messages can be routed by a deleted exchange because of the cache. Fix is to mark the exchange deleted and check the status when using the cached exchange. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1095144 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3208: Exchanges make best effort to route messages if there is an error.Alan Conway2011-04-183-16/+64
| | | | | | | | | | | | | | | Previously if multiple queues were bound to the same routing key, then a failure to deliver to one of the queues (e.g. policy limit error) could prevent delivery on some of the other queues. With this commit the exchange delivers to every queue that did not have an error before raising an error. Note: this was originally committed as r1092765, but it caused test failures was reverted as r1092804. The original commit did not create exceptions of the correct type. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1094734 13f79535-47bb-0310-9956-ffa450edef68
* Revert "QPID-3208: Exchanges make best effort to route messages if there is ↵Alan Conway2011-04-152-43/+7
| | | | | | | | an error." This reverts commit r1092765 which introduced test failures in make check. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1092804 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3208: Exchanges make best effort to route messages if there is an error.Alan Conway2011-04-152-7/+43
| | | | | | | | | | | Previously if multiple queues were bound to the same routing key, then a failure to deliver to one of the queues (e.g. policy limit error) could prevent delivery on some of the other queues. With this commit the exchange delivers to every queue that did not have an error before raising an error. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1092765 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3206: fix broken test from previous commitGordon Sim2011-04-141-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1092306 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3206: added special cases to catch negative numeric string conversions ↵Gordon Sim2011-04-141-0/+58
| | | | | | to unsigned values git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1092219 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3170: correct deletion of federation routes when keys match.Kenneth Anthony Giusti2011-04-081-1/+299
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1090266 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: minor improvements to qpid-cpp-benchmark, more flexible arguments.Alan Conway2011-04-041-6/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1088738 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3129: cluster_tests.LongTests.test_failover hangsAlan Conway2011-03-301-1/+1
| | | | | | | | | | | | | | | | | Fix is a race condition in posix/Socket.cpp Socket::connect. When connecting to a port on the same host which no longer has a process associated with it the OS occasionally chooses the remote port (which is unoccupied) as the port to bind the local end of the socket, resulting in a "circular" connection. This seems like something the OS should prevent but I have confirmed that the sporadic hangs in cluster_tests.LongTests.test_failover on RHEL5 are caused by such a circular connection. The fix is to detect circular connections and raise an error. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1087052 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3153Michael Goulish2011-03-184-4/+8
| | | | | | | added check for ais_exec running -- or don't run these clustered tests git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1082812 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3152Michael Goulish2011-03-181-6/+7
| | | | | | | The non-clustered versions of the sasl_fed_ex tests should probably not attempt to load cluster.so. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1082804 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3150Michael Goulish2011-03-171-1/+1
| | | | | | | | This is a test-only fix. Tell the client explicitly to use DIGEST-MD5, rather than possibly defaulting to a mech that the test has not prepared for. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1082685 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Put a timeout on calls to Thread.join to avoid tests hanging ↵Alan Conway2011-03-171-3/+7
| | | | | | indefinitely. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1082668 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Minor improvements to test scripts qpid-cluster-benchmark and ↵Alan Conway2011-03-144-40/+76
| | | | | | | | | qpid-cpp-benchmark - qpid-cluster-benchmark: added command line options. - qpid-cpp-benchmark: clean up error handling, fixed a race condition. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1081396 13f79535-47bb-0310-9956-ffa450edef68
* Removed faulty test, test_dr_no_message was failing sporadically.Alan Conway2011-03-121-19/+0
| | | | | | | test_dr_no_message was using unreliable sleeps to try to determine expiry of messages. There's no obvious way to implement the test correctly. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1080945 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3129: cluster_tests.LongTests.test_failover hangsAlan Conway2011-03-112-128/+83
| | | | | | | - simplified brokertest.py using subprocess.Popen file redirection instead of threads. - fixed the hang in test_failover git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1080786 13f79535-47bb-0310-9956-ffa450edef68
* Add new cluster-based sasl_fed_ex tests to EXTRA-DISTMichael Goulish2011-03-091-1/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1079808 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1672Michael Goulish2011-03-086-6/+118
| | | | | | | clustered versions of the 4 federated sasl external tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1079539 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3073: refactor to eliminate locks, malloc, and map insert/remove in ↵Kenneth Anthony Giusti2011-03-082-16/+0
| | | | | | receive path. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1079385 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3121: Cluster management inconsistency when using persistent store.Alan Conway2011-03-073-26/+37
| | | | | | | | | | | | | | | | | | | | With the store doing async completions, completion IO callbacks could be queued differently on different nodes. This led to inconsistent management changes in a cluster when a connection was modified in an IO callback. Fix was to mark IO callback processing as not cluster safe, so connections don't record management stats during an IO callback. Test changes: - enable durable tests in test_management. - add substitutions to mask known issue of inconsistent "stats changed" messages. - add transactional client to test_management. - ignore heartbeat connection close logs in cluster_test_logs.py - make brokertest.retry more accurate - fix minor bug in brokertest.log_ready. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1078947 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1672Michael Goulish2011-03-071-50/+128
| | | | | | | | | | | The core script sasl_fed_ex ( used by sasl_fed_ex_* ) is modified to encapsulate broker creation, and handle clustering -- toggled by a new argument. This is an intermediate checkin. There are not yet any scripts that actually invoke the new clustering capability. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1078745 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2461: Applied patch from Neil WilsonGordon Sim2011-03-048-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1077902 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA Fix a degenerate test case where the message count is smallCharles E. Rolke2011-03-031-1/+6
| | | | | | | | | and the host system timing base yields and elapsed time of zero. The change is to throw a meaningful error message rather than throwing an obscure DIV0 error. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1076652 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3105: Alternate-Exchange configuration not communicated between nodes ↵Alan Conway2011-03-021-1/+28
| | | | | | in a cluster. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1076375 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3081: add statistic for queue flow control transitionsKenneth Anthony Giusti2011-03-021-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1076329 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3096Michael Goulish2011-03-0117-2334/+0
| | | | | | | removing qrsh -- was never used. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1075874 13f79535-47bb-0310-9956-ffa450edef68