summaryrefslogtreecommitdiff
path: root/cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@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/qpid@1349389 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4046: set intrusive ptr to zero instead of calling reset() - compatible ↵Ken Giusti2012-06-121-1/+1
| | | | | | with older releases of boost git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@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/qpid@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/qpid@1349006 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA - Fixed some Windows Visual Studio build errorsTed Ross2012-06-112-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1348926 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603 add new file to CMakeListsCharles E. Rolke2012-06-111-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1348712 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4022 C++ Broker connection limits by host ip and by user name.Charles E. Rolke2012-06-1115-163/+254
| | | | | | | | | | | Rework the strategy to deny connections based on configured limits. All limits checked in one function from points in broker when the user's authenticated name is known. Denied connections receive the AMQP exception instead of getting the socket closed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1348707 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4048 - Rafactor of TopicExchange to isolate the binding-key data structure.Ted Ross2012-06-085-473/+408
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1348233 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Fix race condition causing sporadic crash in ↵Alan Conway2012-06-084-5/+17
| | | | | | | | | BrokerReplicator::initializeBridge The BrokerReplicator was being deleted before all outstanding initializeBridge calls had been processed by the IO thread. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1348115 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Add ConfigurationObserver.Alan Conway2012-06-0810-29/+230
| | | | | | | Allows plugins to observe configuration events queue create/destroy, exchange create/destroy and bind/unbind. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1348114 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: HA primary sends membership updates to backup brokers.Alan Conway2012-06-0815-62/+353
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1348113 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4046: rate limit the release of dequeued messages.Ken Giusti2012-06-081-8/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1348090 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4040 - Close federation links after lost heartbeats.Ted Ross2012-06-065-3/+61
| | | | | | | Applied patch from Andy Goldstein. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1347044 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4043 - Remove usage of deprecated definitions from Corosync.Ted Ross2012-06-063-32/+55
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1346951 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4041: move check for transport after setting value.Ken Giusti2012-06-051-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1346462 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4032 Broker ACL does not accept sub-groups in group declarationCharles E. Rolke2012-06-012-4/+52
| | | | | | | | | | | | Patch from Paul Colby and new self test demonstrating the fix. Note that this patch broke the user_realm self test. That is, a naked name like 'bob' has changed from being a username missing a domain to being a group name. The self test used to fail and still fails but now for a different reason. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1345190 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4031: fix deadlock by moving timer cancel outside of scoped lock.Ken Giusti2012-05-311-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1344734 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA Fix signed/unsigned warnings on RHEL 5 w/ Boost 1.33.1Stephen D. Huston2012-05-301-22/+22
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1344458 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Fix deadlock in ReplicatingSubscription causing primary to hang ↵Alan Conway2012-05-291-9/+27
| | | | | | sporadically git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1343762 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Removed isSelf check in Backup, was returning false positives.Alan Conway2012-05-291-0/+3
| | | | | | To be restored once the problem is fixed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1343710 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Add timerTask->cancel to ~AsynchIOHandler.Alan Conway2012-05-281-0/+2
| | | | | | | Observed crashes where timer fires after AsynchIOHandler is deleted. This should prevent such crashes. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1343397 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Better log messages for HA code.Alan Conway2012-05-2810-68/+97
| | | | | | Identify host name of backup in ReplicatingSubscription logs. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1343351 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Failover optimization restored.Alan Conway2012-05-284-94/+207
| | | | | | | | | A backup broker that fails over to a new primary can avoid downloading messages that it already has from the previous primary. The backup sends its position to the primary as a client-arg and the primary sends back any necessary dequeues and starts replicating after the messages on the backup. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1343350 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: HA brokers avoid self-connection.Alan Conway2012-05-283-7/+14
| | | | | | | | HA brokers attempt to avoid self-connection using SystemInfo::isLocalHost(). If a VIP is used then this check won't work. Brokers now check the system-id UUID on incoming connections and reject the connection if it is their own. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1343349 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Close replication link when a backup broker is promoted to primary.Alan Conway2012-05-282-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1343348 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Allow Queue::setPosition() to truncate the queue.Alan Conway2012-05-2812-92/+310
| | | | | | | | | | | | In the new HA code a backup may sometimes be ahead of the new primary after a fail-over. In that case the backup truncates it's queues to the same position as the primary so it can continue replicating. (Note the assertions added to verify setPosition showed up a minor bug in the old cluster code, which was leaving messages on the cluster update queue after an update. This patch fixes the issue.) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1343347 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3992 - Removed the Boost license text from the Ruby LICENSE file.Ted Ross2012-05-251-29/+0
| | | | | | | Applied patch from Darryl Pierce. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1342788 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3995 - Cleans up queues created during Cucumber feature tests Ted Ross2012-05-256-12/+29
| | | | | | | Applied patch from Darryl Pierce git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1342786 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: eliminate dead code and potential null pointer dereference as found ↵Ken Giusti2012-05-251-23/+19
| | | | | | by Coverity git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1342759 13f79535-47bb-0310-9956-ffa450edef68