From f6bf1d808361f0fcfa40c2971ea0a68d26efffc4 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 5 Oct 2012 18:21:45 +0000 Subject: QPID-4360: Non-ready HA broker can be incorrectly promoted to primary A joining broker now attempts to contact all known members of the cluster and check their status. If any brokers are in a state other than "joining" the broker will refuse to promote. This will allow rgmanager to continue to try addresses till it finds a ready brokers. Note this reqiures ha-brokers-url to be a list of all known brokers, not a virtual IP. ha-public-url can still be a VIP. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1394706 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/ha.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qpid/cpp/src/ha.mk') diff --git a/qpid/cpp/src/ha.mk b/qpid/cpp/src/ha.mk index 96a3d872e4..0cc0760d94 100644 --- a/qpid/cpp/src/ha.mk +++ b/qpid/cpp/src/ha.mk @@ -50,10 +50,12 @@ ha_la_SOURCES = \ qpid/ha/ReplicationTest.cpp \ qpid/ha/ReplicationTest.h \ qpid/ha/Settings.h \ + qpid/ha/StatusCheck.cpp \ + qpid/ha/StatusCheck.h \ qpid/ha/RemoteBackup.cpp \ qpid/ha/RemoteBackup.h \ qpid/ha/types.cpp \ qpid/ha/types.h -ha_la_LIBADD = libqpidbroker.la +ha_la_LIBADD = libqpidbroker.la libqpidmessaging.la ha_la_LDFLAGS = $(PLUGINLDFLAGS) -- cgit v1.2.1