summaryrefslogtreecommitdiff
path: root/cpp/src/qpid
Commit message (Collapse)AuthorAgeFilesLines
* QPID-2702 --max-connections does not work when using cluster.Alan Conway2010-07-231-2/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@967215 13f79535-47bb-0310-9956-ffa450edef68
* Race condition in cluster+management, inconsistent errors like:Alan Conway2010-07-232-23/+46
| | | | | | | | | | | | "confirmed < (2097+0) but only sent < (2096+0)" Management messages are generated if a managed objects properties have changed since the last update. Properties of the cluster object (members and status) were sometimes being changed outside the delivery context which could create inconsistencies in the cluster. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@966933 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2754: fix management object database locking problem.Kenneth Anthony Giusti2010-07-223-112/+208
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@966795 13f79535-47bb-0310-9956-ffa450edef68
* Fix bug in cluster with authentication: nodes exit with "unauthorized-access"Alan Conway2010-07-204-1/+16
| | | | | | | | | | Adding a node to a cluster on which authentication is enabled and on which there are existing connections authenticated with mechanisms other than anonymous, may result in nodes exiting the cluster with inconsistent authorisation errors. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@965979 13f79535-47bb-0310-9956-ffa450edef68
* Fix unreferenced local variable warningStephen D. Huston2010-07-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@964623 13f79535-47bb-0310-9956-ffa450edef68
* Fix read-credit bug causing cluster brokers to disconnect clients sporadically.Alan Conway2010-07-143-10/+27
| | | | | | | Also added connection identifier in connection log messages. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@964213 13f79535-47bb-0310-9956-ffa450edef68
* QMF: enable python console to pull schema info from agent.Kenneth Anthony Giusti2010-07-122-103/+138
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@963479 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2727: Handle exceptions in Broker constructor and call finalise to ↵Gordon Sim2010-07-091-0/+5
| | | | | | safely cleanup plugins git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@962586 13f79535-47bb-0310-9956-ffa450edef68
* QMF: add api to get agent id, and new object id constructor that uses agent id.Kenneth Anthony Giusti2010-07-084-0/+40
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@961919 13f79535-47bb-0310-9956-ffa450edef68
* Fix cluster-safe assertion in ~Connection.Alan Conway2010-07-081-0/+6
| | | | | | | | Don't trigger cluster-safe asserts in broker::~Connection as it can be called from an IO threads during broker shutdown. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@961814 13f79535-47bb-0310-9956-ffa450edef68
* Ensure broker is deleted in main thread, not by global destructors.Alan Conway2010-07-072-13/+17
| | | | | | | This fixes a race condition that was not handled by r959746. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@961404 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: Don't hold lock while waiting for incoming message in ↵Gordon Sim2010-07-061-1/+1
| | | | | | nextReceiver() call. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@960951 13f79535-47bb-0310-9956-ffa450edef68
* Defer delivery of messages in cluster-unsafe context.Alan Conway2010-07-055-4/+64
| | | | | | | | | | | | | | | Messages enqueued in a cluster-safe context are synchronized across the cluster. However some messages are delivered in a cluster-unsafe context, for example raising a link established event occurs the connection thread of the establishing connection. This fix deferrs such messages by multicasting them so they can be re-delived in a cluster safe context. See https://bugzilla.redhat.com/show_bug.cgi?id=611543 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@960681 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2716: QMF bugfix - set agent name in object idKenneth Anthony Giusti2010-07-021-0/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@960012 13f79535-47bb-0310-9956-ffa450edef68
* Fix sporadic cluster core on exit.Alan Conway2010-07-012-1/+1
| | | | | | | | Fix a race condition that allows a cluster::Connection to be deleted via the Cluster's local map before it was fully initialized. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959752 13f79535-47bb-0310-9956-ffa450edef68
* Fix spordic failure in cluster_test testConnectionKnownHosts.Alan Conway2010-07-011-2/+10
| | | | | | | | | | Very occasional failure of the form: cluster_test.cpp(547): error in "testConnectionKnownHosts": check kb0 == kb2 failed [42179 57640 != 44199 57640 ] ]) Fix is to avoid using possibly out-of-date initial-brokers data from the connection. Only rely on updates received from the amq.failover exchange. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959751 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: Translate exceptions to correct type when occuring on creating new ↵Gordon Sim2010-07-011-0/+4
| | | | | | session. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959721 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: expose authenticated username for connectionGordon Sim2010-06-304-1/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959461 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: corrected option name for setting subscribe options on a queueGordon Sim2010-06-301-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959451 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2708: Create a separate qpidtypes library for the types namespace.Alan Conway2010-06-301-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959419 13f79535-47bb-0310-9956-ffa450edef68
* added a case for SEC_ERROR_EXPIRED_CERTIFICATE: in getErrorString() Rajith Muditha Attapattu2010-06-291-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959064 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2698: recognise special property names for amqp 0-10 specific message- ↵Gordon Sim2010-06-252-3/+48
| | | | | | and delivery- properties git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@958044 13f79535-47bb-0310-9956-ffa450edef68
* Fix regression in r956882, sporadic failures of ↵Alan Conway2010-06-242-15/+10
| | | | | | client_test.cpp:testBadClientData git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@957640 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2691: ensure ttl adjustment uses correct expiration on cloned messageGordon Sim2010-06-243-4/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@957511 13f79535-47bb-0310-9956-ffa450edef68
* Make management+cluster test more aggressive.Alan Conway2010-06-231-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@957337 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2388: Do not unmask signals whilst waiting for IO to happenAndrew Stitcher2010-06-231-12/+0
| | | | | | | - The client and common libraries do not use signals at all so there is no real reason to allow signal handling on IO threads. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@957109 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2688: ensure that unacked messages are requeued before autodeletion ↵Gordon Sim2010-06-223-9/+37
| | | | | | occurs when session closes git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@956988 13f79535-47bb-0310-9956-ffa450edef68
* Fix bad assertion introduced in prevoius commit r956882Alan Conway2010-06-222-4/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@956965 13f79535-47bb-0310-9956-ffa450edef68
* Don't hold QueueRegistry lock while iterating over queues to purge them of ↵Gordon Sim2010-06-221-1/+17
| | | | | | expired messages. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@956923 13f79535-47bb-0310-9956-ffa450edef68
* Fix cluster broker crashes when management is active.Alan Conway2010-06-228-42/+109
| | | | | | | | | | | | Cluser brokers were exiting with errors "modified cluster state outside cluster context" and "confirmed < (50+0) but only sent < (49+0)" Fix was to: - delay completion of incoming update till update connection closes. - delay addding new connections to managment until connection is announced. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@956882 13f79535-47bb-0310-9956-ffa450edef68
* Consistent comparison of unsigned values; clarify usage as well as removing ↵Stephen D. Huston2010-06-171-1/+2
| | | | | | potential bad compare. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@955749 13f79535-47bb-0310-9956-ffa450edef68
* Bug 603835 - cluster_tests.test_management failing.Alan Conway2010-06-165-33/+48
| | | | | | | | | | | Clean up connections causing extra connection objects in the mangement agent map. - update connection was not being closed. - connections belonging to members that left the cluster were not fully cleaned up Also fixed test errors making failover_soak fail sporadically. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@955370 13f79535-47bb-0310-9956-ffa450edef68
* remove assertion for condition that is in fact valid (the callback could ↵Gordon Sim2010-06-161-2/+0
| | | | | | have been processed on the back of an event concurrently returned with the interrupt request) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@955339 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2670: copy-on-write when tagging message for loop detectionGordon Sim2010-06-156-4/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954933 13f79535-47bb-0310-9956-ffa450edef68
* This change is a partial fix for the problem of long cluster failovers. ↵Michael Goulish2010-06-151-1/+3
| | | | | | | | | | | This change addresses part of that problem: long newbie-broker catchup times. At this time, it looks as though there are two distinct mechanisms causing these long catchup times. They roughly divide into a population of times less than 20 seconds, and a population of much longer times (up to hundreds of seconds). This fix addresses only the shorter times. In a test of 25 failovers before and after the change, it reduced those times by an average of nearly 50%. A T-test on the times indicates that the likelihood of the observed change happening randomly is less than 2%. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954895 13f79535-47bb-0310-9956-ffa450edef68
* Allow entry into notifyPendingWrite() if already stopped as it is too hardAndrew Stitcher2010-06-141-2/+2
| | | | | | | to eliminate a race that can cause this, and it is essentially harmless if ignored git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954499 13f79535-47bb-0310-9956-ffa450edef68
* Move QueuePair member in Rdma::AsynchIO to ensure that it get destroyed beforeAndrew Stitcher2010-06-142-4/+6
| | | | | | | the buffers it uses, so that there is no hardware activity using them after they are deleted git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954498 13f79535-47bb-0310-9956-ffa450edef68
* Ensure that we can't shutdown in the middle of writing a bufferAndrew Stitcher2010-06-141-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954497 13f79535-47bb-0310-9956-ffa450edef68
* Combine Rdma::Buffer and ibv_sge needed to send itAndrew Stitcher2010-06-147-63/+60
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954496 13f79535-47bb-0310-9956-ffa450edef68
* Try to avoid getting into a state where we can't send credit because weAndrew Stitcher2010-06-141-1/+10
| | | | | | | sent the very last buffer without any credit. So in theory when we do have credit to send we should have a buffer and xmit credit to do it with. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954495 13f79535-47bb-0310-9956-ffa450edef68
* Added asserts to ensure that we catch it if xmitCredit isn't saneAndrew Stitcher2010-06-141-0/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954494 13f79535-47bb-0310-9956-ffa450edef68
* Allow stopping even if we've got outstanding write buffers.Andrew Stitcher2010-06-141-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954493 13f79535-47bb-0310-9956-ffa450edef68
* In Rdma::AsynchIO::stop():Andrew Stitcher2010-06-142-6/+19
| | | | | | | | | | | | - make sure we stop the underlying handle immediately whether or not we do the stopped callback now or have to defer it. In qpid::client::RdmaConnector: - make sure that the shutdown handler is called under all circumstances. - make sure that the destructor doesn't delete the aio if it is already deleted git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954492 13f79535-47bb-0310-9956-ffa450edef68
* Only set the draining flag when we delay calling the drained callback.Andrew Stitcher2010-06-141-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954491 13f79535-47bb-0310-9956-ffa450edef68
* Trivial code simplificationAndrew Stitcher2010-06-141-3/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954490 13f79535-47bb-0310-9956-ffa450edef68
* Removed unnecessary parameter from Rdma::AsynchIO::dataEvent()Andrew Stitcher2010-06-142-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954489 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a bug in which QMF error return codes were being sent back as 7 - ↵Ted Ross2010-06-111-20/+12
| | | | | | Exception. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@953885 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: Avoid allocation for void VariantGordon Sim2010-06-111-26/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@953615 13f79535-47bb-0310-9956-ffa450edef68
* Ensure that AsynchConnector is disassociated from Poller when aborting ↵Gordon Sim2010-06-114-5/+16
| | | | | | connection attempt due to a heartbeat timeout git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@953610 13f79535-47bb-0310-9956-ffa450edef68
* Refer to struct Url as that, not a class - fixes compile warnings on Windows.Stephen D. Huston2010-06-111-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@953526 13f79535-47bb-0310-9956-ffa450edef68