summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/ha/HaPlugin.cpp
Commit message (Collapse)AuthorAgeFilesLines
* NO-JIRA: Fix core dump if ha plugin is loaded but ha-cluster=noAlan Conway2012-12-191-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1424071 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4506: Qpid HA's '--ha-public-url' option duplicates the ↵Alan Conway2012-12-141-1/+1
| | | | | | | | | | | | | | '--known-hosts-url' option but cannot be disabled Reverts the previous commit and simplifies the semantics of setting --ha-public-url and --ha-brokers-url. There is no longer any over-riding or implicit updating of values. That means you must set --ha-public-url as well as --ha-brokers-url, it will not be defaulted. Likewise if you *dont* set ha-public-url, it will remain empty, which is the use case in this bug. The defaulting was adding complexity without adding much value. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1421934 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4498: HA module should only initialize if requested Alan Conway2012-12-101-1/+3
| | | | | | | | | | This commit provides better control over loading the HA module. In particular it is not loaded if no ha options are set. This will prevent clashes with the old cluster plugin in configurations where the HA module is not explicitly used. HA documentation has been updated to state that HA and old cluster cannot be used together. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1419850 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4436: HA fix qpidd crash when mgmt-enable=noAlan Conway2012-11-141-4/+10
| | | | | | | - Don't initialize HaBroker if management is disabled. - Fix use of constants from another compilation unit in QueueReplicator. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1409327 13f79535-47bb-0310-9956-ffa450edef68
* Bug 867030 - QPID-4374: Use configurable credit window for HA backup ↵Alan Conway2012-10-181-0/+4
| | | | | | subscriptions (Jason Dillaman) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1399813 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix typos, update comments, update log messages.Alan Conway2012-07-231-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1364806 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4156: HA close window for clients to connect before HA broker is ↵Alan Conway2012-07-191-3/+8
| | | | | | | | | | | | | initialized A HA backup broker in a cluster rejects client connections. This was previously done in a ConnectionObserver registered during Plugin::initialize. However that left a window before the observer was registered when clients could connect. This showed up as a sporadic failure of the failover test. This patch moves the creation of the observer to Plugin::earlyInitialize, which is guaranteed to be called before the broker starts listening for clients. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1363498 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4126: HA primary times out expected backups.Alan Conway2012-07-101-0/+2
| | | | | | | | | | | | After a failure, the newly-promoted primary broker guards messages for each of the backups that were connected at the time of the failure. It waits for them to reconnect to the new primary before becoming active. This patch introduces a time-out so that if an expected backup fails to fail-over within the time limit, the primary will cancel the guards for that backup and carry on. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1359872 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Separate QueueGuard from ReplicatingSubscription.Alan Conway2012-06-121-3/+0
| | | | | | | | | | | | | 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-3603: Renamed brokers and public-brokers to brokers-url and public-url ↵Alan Conway2012-05-221-4/+4
| | | | | | for clarity. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1341581 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: HA broker backup/primary ready checks.Alan Conway2012-05-151-1/+2
| | | | | | | | | | | | | | | | | - Introduce HA broker state machien - Inform backup queues when ready. - Incomplete implementation of backup ready check. - does not count correctly after a failover, see countUnready. - Existing replicator bridges updated out of sync with BrokerReplicator initialize. - Does not handle multi-messages responses. - Newly promoted HA primary waits for backups to be ready before accepting clients. - Uniform log prefixes for HA messages. - qpid-ha tests, call qpid-ha python code directly. - Move excluder from Backup to HaBroker, it is also used in PROMOTING. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1338889 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Add finalizer for HaPlugin, fix hang on exit not responding to ↵Alan Conway2012-05-141-2/+9
| | | | | | kill -TERM. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1338264 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Update HA documentatiionAlan Conway2012-04-051-1/+1
| | | | | | Also renamed --ha-replicate-default to --ha-replicate git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1310026 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Broker option --ha-replicate-default to specify default replication.Alan Conway2012-04-021-0/+3
| | | | | | | Takes values 'all', 'configuration', 'all'. This is the replication level to use if a queue or exchange is created without an explicit 'qpid.replicate' argument. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1308597 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: HA support for stand-alone replication.Alan Conway2012-02-291-6/+2
| | | | | | | | - New management method HaBroker.replicate to enable replication. - qpid-ha tool can enable replication of queues. - qpid-config tool can create queues with replication enabled. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1295339 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Improved command-based qpid-ha tool and ha config option names.Alan Conway2012-02-241-6/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1293397 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: HA logging improvements.Alan Conway2012-02-221-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1292445 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Merge new HA foundations.Alan Conway2012-02-171-0/+67
Merged from qpid-3603-7. This is basic support for the new HA approach. For information & limitations see qpid/cpp/design_docs/new-ha-design.txt. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1245587 13f79535-47bb-0310-9956-ffa450edef68