Backup server can not be started if master server is offline
dengyong Oct 29, 2012 7:16 AMHornetQ: 2.3 BETA
Topology: Two HornetQ has been configured to form HA live backup group. The HA mode is date replication
I am using UDP broadcast.
Description:
1. HornetQ master is stopped
2. start HornetQ backup server, it will with following exception
3. Start HornetQ master. After the master is fully started, the backup won't recover
Why backup server can not start if master server is offline? If backup is activated after master died, before
master replicate the state back, the backup dies. In this situation, it will cause problem if backup server can
not start if master if offline.
Configuration is attached.
19:06:50,176 ERROR [org.hornetq.core.server] HQ114002: Failure in initialisation: HornetQException[e
rrorType=CONNECTION_TIMEDOUT message=HQ119031: Timed out waiting to receive initial broadcast from c
luster]
at org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.jav
a:760) [hornetq-core-client.jar:]
at org.hornetq.core.client.impl.ServerLocatorImpl.connect(ServerLocatorImpl.java:594) [horne
tq-core-client.jar:]
at org.hornetq.core.client.impl.ServerLocatorImpl.connect(ServerLocatorImpl.java:578) [horne
tq-core-client.jar:]
at org.hornetq.core.server.LiveNodeLocator.connectToCluster(LiveNodeLocator.java:82) [hornet
q-core.jar:]
at org.hornetq.core.server.impl.HornetQServerImpl$SharedNothingBackupActivation.run(HornetQS
erverImpl.java:2222) [hornetq-core.jar:]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]
HornetQException[errorType=CONNECTION_TIMEDOUT message=HQ119031: Timed out waiting to receive initia
l broadcast from cluster]
at org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.jav
a:760)
at org.hornetq.core.client.impl.ServerLocatorImpl.connect(ServerLocatorImpl.java:594)
at org.hornetq.core.client.impl.ServerLocatorImpl.connect(ServerLocatorImpl.java:578)
at org.hornetq.core.server.LiveNodeLocator.connectToCluster(LiveNodeLocator.java:82)
at org.hornetq.core.server.impl.HornetQServerImpl$SharedNothingBackupActivation.run(HornetQS
erverImpl.java:2222)
at java.lang.Thread.run(Thread.java:662)