summaryrefslogtreecommitdiff
path: root/cpp/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Allow for the case where we get an rdma reject because there is no one listeningAndrew Stitcher2010-12-231-4/+14
| | | | | | on the resolved address git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1052326 13f79535-47bb-0310-9956-ffa450edef68
* Factored rdma sending/receiving code out to make manipulatingAndrew Stitcher2010-12-232-24/+42
| | | | | | credit isolated git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1052325 13f79535-47bb-0310-9956-ffa450edef68
* Reject attempts to connect with version of rdma protocol we don't understandAndrew Stitcher2010-12-232-1/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1052324 13f79535-47bb-0310-9956-ffa450edef68
* Plumb rdma protocol version into Rdma::AsynchIOAndrew Stitcher2010-12-236-0/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1052323 13f79535-47bb-0310-9956-ffa450edef68
* Add in some useful rdma warnings when we reject a connectionAndrew Stitcher2010-12-231-1/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1052321 13f79535-47bb-0310-9956-ffa450edef68
* Add code to switch on/off byteswapping of RDMA ConnectionParamsAndrew Stitcher2010-12-232-15/+60
| | | | | | | | depending on detected protocol version. To give some backwards compatibility and fix a previous error which sent connection params in host order. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1052320 13f79535-47bb-0310-9956-ffa450edef68
* Added test into RdmaClient to be sure the messages we receive are theAndrew Stitcher2010-12-231-8/+40
| | | | | | | same as the message we sent. Use a pseudo random non-repetetive stream as the message to be sure there is no reordering or repeating of messages. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1052319 13f79535-47bb-0310-9956-ffa450edef68
* Allow RdmaClient to be interruptedAndrew Stitcher2010-12-231-2/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1052318 13f79535-47bb-0310-9956-ffa450edef68
* Allow command line utilities to require a given SASL mechanism.Jonathan Robie2010-12-211-0/+49
| | | | | | | | | | Useful if the client's most secure mechanism is suspect, e.g. if Kerberos configuration problems may exist. Also useful in a variety of test scenarios. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1051700 13f79535-47bb-0310-9956-ffa450edef68
* Change tmp directories from /tmp/sasl_fed/RANDOM to /tmp/sasl_fed_RANDOM.Michael Goulish2010-12-172-3/+3
| | | | | | | | | Otherwise, if user A runs these tests first, user B can't come along and run them later -- if he doesn't have write permission to the /tmp/sasl_fed directory which user A already created. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1050493 13f79535-47bb-0310-9956-ffa450edef68
* Made qpid-xxx management scripts callable as python functions.Jonathan Robie2010-12-171-18/+124
| | | | | | | | | | | | | | | | | | | | | Examples (from cli_tests.py): def qpid_config_api(self, arg = ""): script = import_script(checkenv("QPID_CONFIG_EXEC")) broker = ["-a", "localhost:"+str(self.broker.port)] return script.main(broker + arg.split()) def qpid_route_api(self, arg = ""): script = import_script(checkenv("QPID_ROUTE_EXEC")) return script.main(arg.split()) Useful primarily for qpid-config, qpid-route, and qpid-cluster. Probably not useful for qpid-stat, qpid-printevents, qpid-queue-stats, which just create screen output. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1050425 13f79535-47bb-0310-9956-ffa450edef68
* Include the new sasl_fed_ex test in EXTRA_DIST.Michael Goulish2010-12-171-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1050424 13f79535-47bb-0310-9956-ffa450edef68
* In broker::ConectionHandler, use the security settings, if any, Michael Goulish2010-12-164-12/+259
| | | | | | | | | | | provided by the transport layer when starting SASL. This allows the SASL mechanism EXTERNAL to be satisfied with SSL transport security. The test, sasl_fed_ex, uses this SASL/SSL security on a federated link between two brokers. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1050162 13f79535-47bb-0310-9956-ffa450edef68
* Added missing initializer in the QueryImpl constructor.Ted Ross2010-12-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1049753 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2967 Windows broker fails to destroy connections if client exits abruptlyCharles E. Rolke2010-12-151-3/+4
| | | | | | | In win::AsynchIOReadComplete(): If there is no data, always call notifyEof(). If status is nonZero then also call notifyDisconnect(). Reviewed by astitcher. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1049702 13f79535-47bb-0310-9956-ffa450edef68
* Temporarily raise the logging level for ↵Alan Conway2010-12-151-0/+2
| | | | | | cluster_tests.LongTests.test_management and test_management_qmf to debug a sporadic failure. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1049698 13f79535-47bb-0310-9956-ffa450edef68
* Fix flow control for qpid-cpp-benchmark with multiple senders.Alan Conway2010-12-153-17/+21
| | | | | | Ensure senders & receivers agree on number of messages sent/received. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1049656 13f79535-47bb-0310-9956-ffa450edef68
* Bug 662765 - Management broker ID should be the same for members of a cluster.Alan Conway2010-12-156-25/+30
| | | | | | | Replicate management UUID and name to members of a cluster. See https://bugzilla.redhat.com/show_bug.cgi?id=662765. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1049566 13f79535-47bb-0310-9956-ffa450edef68
* Add end-to-end flow control to qpid-send, qpid-receive and qpid-cpp-benchmark.Alan Conway2010-12-143-9/+49
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1049286 13f79535-47bb-0310-9956-ffa450edef68
* ManagementAgent.cpp: consistent logging of message lengths.Alan Conway2010-12-131-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1045258 13f79535-47bb-0310-9956-ffa450edef68
* Modified qpid-cluster to support the way it is called from Jonathan Robie2010-12-101-1/+1
| | | | | | | | | | | | cluster_tests.StoreTests.test_persistent_partial_failure. Corrected test_persistent_partial_failure so that it no longer sends the name of the script as the first parameter - optparse expects this for arguments from sys.argv, but not for other argument lists. Fixed bug assigning host name. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1044468 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2966: Disable test when python lib is not availableGordon Sim2010-12-101-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1044308 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2966: Add QMF method to dynamically set the log level.Gordon Sim2010-12-1010-5/+236
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1044248 13f79535-47bb-0310-9956-ffa450edef68
* Defer update of managaement agent to end of update process.Alan Conway2010-12-086-62/+51
| | | | | | | | | | | Move updating of the management agent to the very end of the update process, after all objects used by the update process itself have been deleted. Before the fix deletions from the update process itself (deleting the qpid.cluster-update queue and its binding to the default exchange) were sporadically appearing as extra delete messages on the updatees management agent and causing inconsistency. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1043621 13f79535-47bb-0310-9956-ffa450edef68
* Comment explaining the nodict flag.Michael Goulish2010-12-071-0/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1043073 13f79535-47bb-0310-9956-ffa450edef68
* Add missing files qpid/cluster/UpdateDataExchange.h,.cxx to cluster.cmake.Alan Conway2010-12-061-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1042717 13f79535-47bb-0310-9956-ffa450edef68
* fix signed vs unsigned compare errorsKenneth Anthony Giusti2010-12-031-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041835 13f79535-47bb-0310-9956-ffa450edef68
* add unit tests for cluster replication of deleted broker mgmt objectsKenneth Anthony Giusti2010-12-031-9/+362
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041817 13f79535-47bb-0310-9956-ffa450edef68
* bugfix in deleted obj import/export apiKenneth Anthony Giusti2010-12-021-2/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041582 13f79535-47bb-0310-9956-ffa450edef68
* fix distcheck build problem with broker mgmt unit testKenneth Anthony Giusti2010-12-021-6/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041424 13f79535-47bb-0310-9956-ffa450edef68
* revert nodist makefile change to fix bootstrap errorKenneth Anthony Giusti2010-12-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041386 13f79535-47bb-0310-9956-ffa450edef68
* enable broker mgmt agent test, fix distcheck errors.Kenneth Anthony Giusti2010-12-022-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041377 13f79535-47bb-0310-9956-ffa450edef68
* Added new arg to code thaat gets compiled when HAVE_SASL is false.Michael Goulish2010-12-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041286 13f79535-47bb-0310-9956-ffa450edef68
* Modified cluster_tests causes broker shut down with invalid-argument error.Alan Conway2010-12-0110-41/+576
| | | | | | | | | | Described in https://bugzilla.redhat.com/show_bug.cgi?id=655078. The management agent's deleted-object list was not being replicated to new members joining the cluster, so management generated fewer deleted object notifications on the newer member, causing it to fail with an invalid-argument error. The list is now being replicated correctly. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041181 13f79535-47bb-0310-9956-ffa450edef68
* Add missing call to Message::setTimestamp in ManagementAgent::sendBufferLH.Alan Conway2010-12-011-2/+3
| | | | | | | | Without this, messages generated here will not be expired consistently in a cluster which may cause a broker to become inconsistent and exit with an invalid-argument error. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041180 13f79535-47bb-0310-9956-ffa450edef68
* Enable cluster-safe assertions on transition to CATCHUPAlan Conway2010-12-012-4/+6
| | | | | | | | | Delaying until READY was causing multiple clientConnect management events to be raised, because broker::Connection::setUserId relies on sys::isCluster to avoid producing duplicate events with cluster::Connection::announce git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041179 13f79535-47bb-0310-9956-ffa450edef68
* Add a unit_test fixture for the Brokers internal management agent.Kenneth Anthony Giusti2010-12-017-6/+408
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041150 13f79535-47bb-0310-9956-ffa450edef68
* Added new arg to Saslfactory::createMichael Goulish2010-12-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1041071 13f79535-47bb-0310-9956-ffa450edef68
* This patch was posted in JIRA QPID-2949.Michael Goulish2010-11-304-12/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It provides a way to tell SaslFactory that console interaction is NOT ok. i.e. if the code is running as part of a broker, or a demonized client of some kind. Just tell it to never do interaction, and any patch attempt to interact will be treated as an error. This script demonstrates that all goes well if you supply enough info : rm -rf /tmp/data_1 /tmp/data_2 mkdir /tmp/data_1 /tmp/data_2 # in window 1: ../qpidd -p 5672 --data-dir /tmp/data_1 --auth=yes --mgmt-enable=yes \ --log-enable info+ ./qpidd_1.log --log-source yes \ --sasl-config=/home/mick/trunk/qpid/cpp/src/tests/sasl_config # in window 2: ../qpidd -p 10000 --data-dir /tmp/data_2 --auth=yes --mgmt-enable=yes \ --log-enable info+ ./qpidd_1.log --log-source yes \ --sasl-config=/home/mick/trunk/qpid/cpp/src/tests/sasl_config # in window 3 ( from qpid dir ) ./tools/src/py/qpid-route dynamic add zig/zig@localhost zig/zig@localhost:10000 qmf.default.direct # and now view the created route ./tools/src/py/qpid-route route list localhost:5672 If you say auth=no, that works fine also. HOWEVER PLEASE NOTE -- if you say auth=yes, but then do not supply enough into to avoid the need for interaction, the attempted interaction will result in the connection being closed. Then the originating broker will re-try the connection, and you will get a two-broker infinite loop until you fix it. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1040689 13f79535-47bb-0310-9956-ffa450edef68
* Binds integer, floating point, or string-typed headers using appropriate ↵Jonathan Robie2010-11-262-6/+87
| | | | | | datatypes. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1039478 13f79535-47bb-0310-9956-ffa450edef68
* Increase the broker start timeout to 90 seconds; sometimes the SQL db create ↵Stephen D. Huston2010-11-261-1/+1
| | | | | | takes a minute or more. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1039421 13f79535-47bb-0310-9956-ffa450edef68
* Revert test change causing failures.Alan Conway2010-11-231-2/+2
| | | | | | Will restore the change once the failure is addressed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1038341 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2957 - Management methods on the broker don't work on newly created objectsTed Ross2010-11-231-0/+4
| | | | | | | A test and a fix are included. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1038231 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2956: cluster broker exits with "error deliveryRecord no update message."Alan Conway2010-11-223-11/+35
| | | | | | | | | The following sequence of events was causing a broker joining the cluster to shutdown: - a client acquires or browses a message with TTL set. - the message expires. - a new broker joins before the client has acknowledged the message. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1037763 13f79535-47bb-0310-9956-ffa450edef68
* Bump the store-startup timeout from 10 to 20 seconds; creating a SQL db ↵Stephen D. Huston2010-11-191-1/+1
| | | | | | often causes a timeout failure running a few seconds long. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1036871 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2874 Clustered broker crashes in assertion in cluster/ExpiryPolicy.cppAlan Conway2010-11-183-13/+75
| | | | | | | | | | | | | | - Added missing lock to ExpiryPolicy - 1-N mapping for expiry ID to mapping when receiving an update. - Regression test. A fan-out message (sent to multiple queues e.g. by fanout or topic exchange) is a single message on multiple queues with a single expiry ID. During an update however each instance is sent as a separate message so we need to allow 1-N mapping of expiry ID to message during update. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1036589 13f79535-47bb-0310-9956-ffa450edef68
* Added missing TimerWarnings.cpp to CMakeLists.txt.Alan Conway2010-11-181-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1036482 13f79535-47bb-0310-9956-ffa450edef68
* cluster/Numbering.h: Removed unused and incorrect function contains()Alan Conway2010-11-171-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1036214 13f79535-47bb-0310-9956-ffa450edef68
* Aggregate Timer warnings.Alan Conway2010-11-175-18/+176
| | | | | | | | | | | | The Timer code logs a warning if a timer callback is started late or overruns the start time for the next callback. In cases where there are a lot of these warnings, the time taken to do the logging itself severly worsens the situation. This commit aggregates timer warnings and give a statistical report every 5 seconds at most. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1036169 13f79535-47bb-0310-9956-ffa450edef68
* Handle iterator properly when removing entries from list; resolves QPID-2941.Stephen D. Huston2010-11-121-3/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1034586 13f79535-47bb-0310-9956-ffa450edef68