summaryrefslogtreecommitdiff
path: root/cpp/src
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* QPID-2674: prevent callbacks after doDelete has been calledGordon Sim2010-11-121-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1034523 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2940: always request completions from broker on Session::acknowledge(), ↵Gordon Sim2010-11-122-2/+4
| | | | | | and always clean up any pending accept records at that time git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1034393 13f79535-47bb-0310-9956-ffa450edef68
* Include cluster scripts unconditionally in distribution.Alan Conway2010-11-111-27/+32
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1034008 13f79535-47bb-0310-9956-ffa450edef68
* Fixed segfault when setting the agent filter on a closed session.Ted Ross2010-11-102-2/+17
| | | | | | | | | Fixed notification for the connected-broker agent. Added an example console program in c++ to monitor the set of agents. Fixed the Python agent example to more elegantly handle connection failure. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1033763 13f79535-47bb-0310-9956-ffa450edef68
* test_env.sh.in: Remove un-necessary absdir for @prefix@, prefix is always ↵Alan Conway2010-11-101-1/+1
| | | | | | absolute. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1033740 13f79535-47bb-0310-9956-ffa450edef68
* qpid-recieve --receive-rate: fixed calculation for duplicate messages.Alan Conway2010-11-101-4/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1033739 13f79535-47bb-0310-9956-ffa450edef68
* Fix to r1028346: no point in throwing exception after queue has already been ↵Gordon Sim2010-11-102-5/+29
| | | | | | created, so just log error and revert to default (do this for floating point values also) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1033585 13f79535-47bb-0310-9956-ffa450edef68
* Added --receive-rate to qpid-recieve to allow simulation of a slow receiver.Alan Conway2010-11-092-3/+22
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1033264 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2934 Feature to pass the authenticated userId to QMF agent method ↵Ted Ross2010-11-094-15/+25
| | | | | | handlers for authorization git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1033232 13f79535-47bb-0310-9956-ffa450edef68
* Increment version numbers from 0.7 to 0.8(docs) and 0.9(code)Robert Gemmell2010-11-071-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1032374 13f79535-47bb-0310-9956-ffa450edef68
* Manage CLFS containers using policies to both create the initial containers ↵Stephen D. Huston2010-11-053-23/+46
| | | | | | and to automatically grow and shrink the log as needed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1031842 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2926 Simple example code does not link under WindowsCharles E. Rolke2010-11-052-0/+72
| | | | | | This commit provides a windows-only Handle instantiator for the currently known Handle consumers. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1031711 13f79535-47bb-0310-9956-ffa450edef68
* Fix typo in help message.Stephen D. Huston2010-11-041-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1031345 13f79535-47bb-0310-9956-ffa450edef68
* Revised Messages to keep track of queues each message is on to enable ↵Stephen D. Huston2010-11-043-207/+255
| | | | | | finding all messages on a deleted queue. Removed this type of tracking from MSSqlClfsProvider.cpp. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1031325 13f79535-47bb-0310-9956-ffa450edef68
* When running store tests, pass the store type to the script. Also added test ↵Stephen D. Huston2010-11-041-1/+4
| | | | | | runs for the CLFS store. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1031323 13f79535-47bb-0310-9956-ffa450edef68
* 1. Enable the second set of tests, now that brokertest.py is checked in and ↵Stephen D. Huston2010-11-041-17/+47
| | | | | | | | running. This allows the tests that require a broker restart to be executed. 2. Make the script accept a command line argument to say which store to run the tests against. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1031319 13f79535-47bb-0310-9956-ffa450edef68
* qpid-cpp-benchmark: allow extra arguments to qpid-send/receive, fix ↵Alan Conway2010-11-041-2/+8
| | | | | | exception error. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1031162 13f79535-47bb-0310-9956-ffa450edef68
* Catch com exceptions during db recovery and rethrow as ADOExceptions which ↵Stephen D. Huston2010-11-031-65/+105
| | | | | | the broker can deal with. Resolves QPID-2925. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1030752 13f79535-47bb-0310-9956-ffa450edef68
* Remove spurious comment.Michael Goulish2010-11-021-3/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1030180 13f79535-47bb-0310-9956-ffa450edef68
* Changed Variant::fromString() to Variant::parse(). Also changed implementation.Jonathan Robie2010-11-012-35/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1029673 13f79535-47bb-0310-9956-ffa450edef68