-
1. Re: Message broker won't come up again when database goes down
flume Jan 19, 2011 7:44 AM (in response to flume)Finally had some time to do some work on this.
It appears that there is a test present in the activemq-core module called org.apache.activemq.broker.ft.DbRestartJDBCQueueMasterSlaveTest that tests the scenario where the DB goes down and comes up again in a master/slave configuration.
The outcome of this test is that the master goes down never to come up again (which is the state that shouldn't occur). On the other hand the slave becomes the master when the DB comes up again (which is after the master went down).
This test doesn't check if the master or slave is up or down nor what master/slave states they are in.
So basically the problem is that when a master sees his DB-store fail he should revert to a slave state and not to the dead state. And when the DB comes up again the fastest of the 2 slaved brokers becomes master. This way we don't have to start the dead master after each DB failure.