summaryrefslogtreecommitdiff
path: root/qpid/cpp
Commit message (Collapse)AuthorAgeFilesLines
* NO-JIRA: ha_tests.py raise exception for errors in qpid-haAlan Conway2012-06-271-2/+5
| | | | | | | Refactored qpid-ha to raise exceptions if invoked via main_except and return non-0 with an error message if invoked as a script via main git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1354717 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Make qmf/BrokerImportExport.h header publicAlan Conway2012-06-273-2/+3
| | | | | | | | | QMF code generator templates include this header so it is required to build QMF generated code against the -devel packages. Review: https://reviews.apache.org/r/5593/ git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1354712 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3902 force [Test] log category into test instanceCharles E. Rolke2012-06-261-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1354040 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix build error on windows, introduced in r1352992Alan Conway2012-06-261-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1354012 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Trivial code cleanup, removing outdated FIXME comments.Alan Conway2012-06-228-69/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1353017 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Simplify locking and remove member-update callback in HA code.Alan Conway2012-06-227-55/+60
| | | | | | | | Get rid of the separate Membership lock and put HaBroker in control of membership changes. Removes a potential deadlock which could explain some observed failures in long-running failover tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1353001 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Cleanup in HA code.Alan Conway2012-06-225-67/+41
| | | | | | | | - Better printed representation for queue ranges. - Removed dead code in ha module related to activated/deactivated backups. - Improved log messages in ha/BrokerReplicator.cpp git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1353000 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4078: Fix primary self-connections in long running test.Alan Conway2012-06-229-43/+46
| | | | | | | | | | | | Assert to detect self-connection were triggered in log runs of ha_tests.py test_failover_send_receive. Fix: - HaBroker close backup link before removing broker-info for outgoing link. - HaBroker removes own address from failover addresses. - Link.cpp: Skip ioThreadProcessing and maintenanceVisit on a link that is closed. - Minor improvements to log messages and comments. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1352999 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3849: Client connection breaks broker-to-broker cluster SASL ↵Alan Conway2012-06-2210-24/+53
| | | | | | | | | | | | authentication Catch-up shadow connections were not being authenticated which caused two problems: - new brokers failed to join the cluster if there was an authenticated session. - possible security loophole that would allow an intruder to gain access to a catch-up broker. All external connections are now fully authenticated, which solves both problems. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1352992 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4075: Raise delete event for autodeleted queues alsoGordon Sim2012-06-227-12/+32
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1352874 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA 0.18 release - add an EXTRA_DIST file required for windows buildsCharles E. Rolke2012-06-211-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1352646 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4082: cluster de-sync after broker restart & queue replicationAlan Conway2012-06-215-3/+8
| | | | | | | | | | | | | | | | | | | | | | Having queue state replication between 2 clusters, restarting a broker in both source+destination clusters sometimes leads to cluster de-sync. No QMF communication is involved, though symptoms are similar to the bug caused by missing propagation of QMF errors within a cluster. The bug is caused by "deliveryCount" in SemanticState::ConsumerImpl (qpid/broker/SemanticState.cpp) not being replicated to a joining cluster node during catch-up. When the elder broker in src.cluster sends session.sync() after sending 5 messages (per --ack 5 in qpid-route), the recently joiner node in src.cluster does not do so, what leads to the cluster de-sync. The patch: - adds to "consumer-state" method (see xml/cluster.xml file change) to update a new joi-ner a new property deliveryCount - updates cluster::Connection::consumerState to send deliveryCount to the method - updates cluster::Connection::consumerState to set the received deliveryCount - add two methods to broker::SemanticState::ConsumerImpl for getting and setting deliveryCount git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1352588 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3333: Patch 0015 from Anthony Foglia; better exception translationGordon Sim2012-06-201-44/+80
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1352050 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4076: Patch from Andy Goldstein, don't use infinite credit on bridges ↵Gordon Sim2012-06-201-3/+3
| | | | | | with explicit acknolwedgements git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1352046 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3902 log category - force log statement to be in test category and to ↵Charles E. Rolke2012-06-191-1/+1
| | | | | | display [Test] with no external processing. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1351827 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4063: remove spurious whitespace introduced in last commit.Kenneth Anthony Giusti2012-06-182-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1351519 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4063: allow configuration of source queue for exchange or dynamic routesKenneth Anthony Giusti2012-06-184-12/+187
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1351518 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4072: HA use backup messages in failover.Alan Conway2012-06-188-114/+152
| | | | | | | ReplicatingSubscription syncs the primary and backup queues, and does not re-send messages that are already on the backup. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1351481 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Remove non-existing file windows/MemStat.cpp from ha.mk.Alan Conway2012-06-181-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1351451 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Fix & clean up in HA code.Alan Conway2012-06-186-35/+58
| | | | | | | | | | - Fix fencepost error in getFirstSafe() - QueueGuard::attach completes messages before the ReplicatingSubscription postion - Fix minor test issues in brokertest.py and ha_test.py. - ReplicatingSubscription check for ready in acknowledge not dispatch. - HA test fix: retry wait_status retry on ConnectErrors, broker may not be up. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1351435 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Minor cleanup and test improvements in HA code.Alan Conway2012-06-1812-41/+55
| | | | | | | | | | - Enabled 10 queue failover test - Minor cleanup in types.h - Rewording, adding comments. - Detect and reject invalid replication values. - Cleaned up some unnecessary #includes git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1351434 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Remove non-existing file HeldQueue from ha.mk.Alan Conway2012-06-181-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1351431 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4030: Check send rate actually achieved and report if it fails to match ↵Gordon Sim2012-06-181-4/+14
| | | | | | the desired rate git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1351386 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Added missing EXTERN declaration on broker::Link::getRemoteAddressAlan Conway2012-06-181-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1351335 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4071: basic porting changes for solaris native compilerClifford Allan Jansen2012-06-1710-4/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1351185 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4022 C++ Broker connection limits corrections for cluster.Charles E. Rolke2012-06-152-33/+64
| | | | | | | Never throw in event of shadow connection going over any limit and issue error messages describing cluster decisions. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1350747 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4070 - Minor internal-api changes for LinkRegistry and Bridge (in ↵Ted Ross2012-06-154-8/+15
| | | | | | qpid::broker) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1350746 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4066 - Allow configuration to override the broker's federation tagTed Ross2012-06-154-8/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1350732 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4049: Linux C++ broker crashes when client connects SSL with expired ↵Andrew Stitcher2012-06-141-0/+2
| | | | | | certificate git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1350406 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix build errors and warnings on windows in HA code.Alan Conway2012-06-142-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1350383 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: CMakeLists.txt: moved reference to pthread from HA link list to ↵Alan Conway2012-06-141-1/+2
| | | | | | linux specific section. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1350381 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Correct template to be strictly standards comformant (work with ↵Andrew Stitcher2012-06-141-1/+1
| | | | | | clang 3.1 & probably gcc 4.7) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1350376 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Bug fixes to HA code, passing test_failover_send_receiveAlan Conway2012-06-1412-39/+66
| | | | | | | | | - Updated HA logging messages to conform to new [Category] log format. - QueueGuard fencepost error, set firstSafe correctly - ReplicatingSubscription passing correct broker info to getGuard() - Don't remove RemoteBackups on disconnect: fixes race where backup rejects connection but primary sees closed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1350069 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4065 - Remove the message's trace list during Queue::reRouteTed Ross2012-06-133-0/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1350003 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix error in CMakeLists.txt to link ha library.Alan Conway2012-06-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349873 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4061 - Added statistic: Number of unacknowledged messages in a sessionTed Ross2012-06-133-0/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349865 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix errors in CMakeLists.txt for ha code.Alan Conway2012-06-131-3/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349857 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: HA bug fixes around transition to ready statusAlan Conway2012-06-1212-43/+68
| | | | | | | | | | - Simplify QueueGuard::firstSafe calculation. - Fix error in setting initial queues - was not checking if replicated. - Send ready status to backups. Tests hang, deadlock in opened()->RemoteBackup on primary? - Fix deadlock in QueueGuard. - Don't start guards inside ConnectionObserver::opened. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349547 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Lock in Queue::getPosition.Alan Conway2012-06-121-0/+1
| | | | | | Needed to ensure serialization of position changes with setObservers for ha plugin. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349546 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: HA bug fixes around ha::QueueGuardAlan Conway2012-06-1213-159/+188
| | | | | | | | | | - Remove nested calls between QueueGuard::dequeued and ReplicatingSubscription - ReplicatingSubscription can't start ahead of QueueGuard::getReadyPosition() - Fix QueueGuard firstSafe calcultatoin - Replace DequeueRemover with DequeueScanner in ReplicatingSubscription - Removed bad assertions in ReplicatingSubscription and QueueGuard git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349544 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Improvements to HA log messages, clarify primary/backp role.Alan Conway2012-06-125-5/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349543 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Guard should not complete messages from the internal event queue.Alan Conway2012-06-124-11/+22
| | | | | | | | ReplicatingSubscription::acknowledge was calling Guard::complete for messages on the internal event queue as well as the replicated queue. Corrected to only complete messages from the replicated queue. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349542 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Move calls to ConfigurationObserver outside of locks.Alan Conway2012-06-122-58/+69
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349541 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Introduced RemoteBackup to track backup status.Alan Conway2012-06-1232-551/+597
| | | | | | | | | | | The primary creates RemoteBackup object for each connected or expected backup. On first being promoted, the new primary has a RemoteBackup for each of the known backups at the time of the failure. The RemoteBackup manages queue guards for its backup and tracks it's readiness. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349540 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Separate QueueGuard from ReplicatingSubscription.Alan Conway2012-06-1237-458/+1100
| | | | | | | | | | | | | QueueGuard: implements QueueObserver to delay completion of new messages. ReplicatingSubscription: Implements subscription, sends messages & events to backup. These were previously combined as one. QueueGuard is now separated out so that it can be created before the ReplicatingSubscription, in anticipation of an expected backup connecting. This is needed for 2 reasons: - new queues must be guarded until they are backuped up. - after a failover, all queues must be guarded until backups are ready. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349538 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3902 Log categoriesCharles E. Rolke2012-06-122-14/+17
| | | | | | | | Change "IO" to "Network", "AMQP" to "Protocol", and add "Client" category. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349457 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix failing unit_test, updated for changes in log format.Alan Conway2012-06-121-2/+2
| | | | | | | The test had not been updated to account for changes to log format, adding [Category] to front of messages. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349389 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4046: set intrusive ptr to zero instead of calling reset() - compatible ↵Kenneth Anthony Giusti2012-06-121-1/+1
| | | | | | with older releases of boost git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349346 13f79535-47bb-0310-9956-ffa450edef68
* Add missing typename. NO-JIRAStephen D. Huston2012-06-121-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349075 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3902 C++ Broker add log categoriesCharles E. Rolke2012-06-119-22/+292
| | | | | | | | svn merge --reintegrate from branch qpid/branches/qpid-3902/qpid git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349006 13f79535-47bb-0310-9956-ffa450edef68