diff options
| author | Alan Conway <aconway@apache.org> | 2012-06-22 19:28:20 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2012-06-22 19:28:20 +0000 |
| commit | a18bf3fe8d01832f4ed40533293c3ce1c2012720 (patch) | |
| tree | c58996c8166bb63850eedcca585b33e2f501ef87 /cpp/src/qpid/ha/Primary.cpp | |
| parent | 4952afa1c6ce3d6cf0e89125ba20279cccd04931 (diff) | |
| download | qpid-python-a18bf3fe8d01832f4ed40533293c3ce1c2012720.tar.gz | |
QPID-4078: Fix primary self-connections in long running test.
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/qpid@1352999 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/ha/Primary.cpp')
| -rw-r--r-- | cpp/src/qpid/ha/Primary.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/ha/Primary.cpp b/cpp/src/qpid/ha/Primary.cpp index a874559655..1fa51b6f68 100644 --- a/cpp/src/qpid/ha/Primary.cpp +++ b/cpp/src/qpid/ha/Primary.cpp @@ -70,13 +70,13 @@ Primary::Primary(HaBroker& hb, const BrokerInfo::Set& expect) : assert(instance == 0); instance = this; // Let queue replicators find us. if (expect.empty()) { - QPID_LOG(debug, logPrefix << "Expected backups: none"); + QPID_LOG(debug, logPrefix << "Promoted, no expected backups"); } else { // NOTE: RemoteBackups must be created before we set the ConfigurationObserver // orr ConnectionObserver so that there is no client activity while // the QueueGuards are created. - QPID_LOG(debug, logPrefix << "Expected backups: " << expect); + QPID_LOG(debug, logPrefix << "Promoted, expected backups: " << expect); for (BrokerInfo::Set::const_iterator i = expect.begin(); i != expect.end(); ++i) { bool guard = true; // Create queue guards immediately for expected backups. boost::shared_ptr<RemoteBackup> backup( |
