The master needs to copy its data from the backup back to live before it's activated.
Do you have a test replicating this? Did you try the snapshot build? On Tue, Oct 13, 2015 at 11:58 AM, Mihkel Nõges <mihkel.no...@transferwise.com> wrote: > Hi, > > I configured replicating HA master-slave of Artemis 1.1.0 instances on > Ubuntu 14.04.3. > > When I kill master the slave takes over as expected and starts serving as > new master. When I then start the old master, it fails with the following > errors in the log: > > 16:35:46,476 ERROR [org.apache.activemq.artemis.core.server] AMQ224008: > Failed to store id: java.lang.IllegalStateException: Cannot find add info 1 > at > org.apache.activemq.artemis.core.journal.impl.JournalImpl.appendDeleteRecord(JournalImpl.java:799) > [artemis-journal-1.1.0.jar:1.1.0] > at > org.apache.activemq.artemis.core.journal.impl.JournalBase.appendDeleteRecord(JournalBase.java:183) > [artemis-journal-1.1.0.jar:1.1.0] > at > org.apache.activemq.artemis.core.journal.impl.JournalImpl.appendDeleteRecord(JournalImpl.java:79) > [artemis-journal-1.1.0.jar:1.1.0] > at > org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager.deleteID(JournalStorageManager.java:1194) > [artemis-server-1.1.0.jar:1.1.0] > at > org.apache.activemq.artemis.core.persistence.impl.journal.BatchingIDGenerator.deleteID(BatchingIDGenerator.java:152) > [artemis-server-1.1.0.jar:1.1.0] > at > org.apache.activemq.artemis.core.persistence.impl.journal.BatchingIDGenerator.cleanup(BatchingIDGenerator.java:75) > [artemis-server-1.1.0.jar:1.1.0] > at > org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager.loadBindingJournal(JournalStorageManager.java:1784) > [artemis-server-1.1.0.jar:1.1.0] > at > org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:1625) > [artemis-server-1.1.0.jar:1.1.0] > at > org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:1535) > [artemis-server-1.1.0.jar:1.1.0] > at > org.apache.activemq.artemis.core.server.impl.SharedNothingBackupActivation.run(SharedNothingBackupActivation.java:249) > [artemis-server-1.1.0.jar:1.1.0] > at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60] > > 16:35:46,572 WARN [org.apache.activemq.artemis.core.server] AMQ222173: > Queue jms.queue.DLQ is duplicated during reload. This queue will be renamed > as jms.queue.DLQ-0 > 16:35:46,572 ERROR [org.apache.activemq.artemis.core.server] AMQ224000: > Failure in initialisation: java.lang.IllegalStateException: Cursor 2 had > already been created > at > org.apache.activemq.artemis.core.paging.cursor.impl.PageCursorProviderImpl.createSubscription(PageCursorProviderImpl.java:97) > [artemis-server-1.1.0.jar:1.1.0] > at > org.apache.activemq.artemis.core.server.impl.PostOfficeJournalLoader.initQueues(PostOfficeJournalLoader.java:140) > [artemis-server-1.1.0.jar:1.1.0] > at > org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:1631) > [artemis-server-1.1.0.jar:1.1.0] > at > org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:1535) > [artemis-server-1.1.0.jar:1.1.0] > at > org.apache.activemq.artemis.core.server.impl.SharedNothingBackupActivation.run(SharedNothingBackupActivation.java:249) > [artemis-server-1.1.0.jar:1.1.0] > at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60] > > As a result both master and the slave remain unaccessible and no further > restarts solve the situation. > > Attached also master and slave broker.xml files. > > BR! > > Mihkel Nõges -- Clebert Suconic