Hi,
I'm using Apache ActiveMQ Artemis 2.27.1.
After a couple of quick artemis-service restarts on both master and slave side,
i received the following error on master:
2023-05-24 09:06:17,509 ERROR [org.apache.activemq.artemis.core.server]
AMQ224000: Failure in initialisation
org.apache.activemq.artemis.api.core.ActiveMQIllegalStateException: AMQ229026:
Backup Server was not yet in sync with live
After that, I restarted master and logged into the console. I noticed all
queues and all messages were missing.
I can see the messages are probably stored inside "331M oldreplica.5" folder
- but I want to prevent this from happening in the future.
Why were the messages and queues "lost"?
Thank you
Config:
master:
<ha-policy>
<replication>
<master>
<check-for-live-server>true</check-for-live-server>
<vote-on-replication-failure>true</vote-on-replication-failure>
</master>
</replication>
</ha-policy>
slave:
<ha-policy>
<replication>
<slave>
<allow-failback>true</allow-failback>
<failback-delay>10000</failback-delay>
</slave>
</replication>
</ha-policy>
cluster config on master (using static connector IPs):
<cluster-connections>
<cluster-connection name="cluster">
<connector-ref>master</connector-ref>
<retry-interval>500</retry-interval>
<use-duplicate-detection>true</use-duplicate-detection>
<static-connectors>
<connector-ref>slave</connector-ref>
</static-connectors>
</cluster-connection>
</cluster-connections>
[1658227403484]
Gašper Čefarin
Systems Engineer
Ferrarska ulica 14, 6000 Koper – Slovenia
M: +386 51 281 905
W: http://www.actual-it.si
NOTICE - NOT TO BE REMOVED.
This e-mail and any attachments are confidential and may contain legally
privileged information and/or copyright material of Actual I.T. or third
parties. If you are not an authorised recipient of this e-mail, please contact
Actual I.T. immediately by return email or by telephone or facsimile on the
above numbers.
You should not read, print, re-transmit, store or act in reliance on this email
or any attachments and you should destroy all copies of them.