I have Artemis configuration (shared storage) with following ha-policy (for master and slave):
Master:
<ha-policy>
<shared-store>
<master>
<failover-on-shutdown>true</failover-on-shutdown>
</master>
</shared-store>
</ha-policy>
Slave:
<ha-policy>
<shared-store>
<slave>
<failover-on-shutdown>true</failover-on-shutdown>
<allow-failback>true</allow-failback>
</slave>
</shared-store>
</ha-policy>
i am doing the following steps:
- Stop Master
./artemis-service stop
Backup is now live:
2020-09-22 10:51:57,172 INFO [org.apache.activemq.artemis.core.server] AMQ221010: Backup Server is now live
- Start Master
./artemis-service start
Master don't switch to live:
2020-09-22 10:53:01,128 INFO [org.apache.activemq.artemis.core.server] AMQ221034: Waiting indefinitely to obtain live lock
2020-09-22 10:53:01,489 INFO [org.apache.activemq.artemis.core.server] AMQ221031: backup announced
Is this the correct behavior? Why doesn't the master server become live after restart?
But If I stop the backup server, the master becomes live.
Server version 2.11
I tried to reproduce this on 2.15. Artemis 2.15 works correctly.