Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Use case:
- start a shared-store-master server with failover-on-server-shutdown=true
- start a shared-store-slave server with scale-down enabled=false (scaleDownPolicy is not null though)
- stop the master server, a NPE occurs during the slave activation:
13:34:01,561 ERROR [org.apache.activemq.artemis.core.server] (AMQ119000: Activation for server ActiveMQServerImpl::serverUUID=44846429-f7d1-11e4-a3b3-f15b1ddcb38d) AMQ224000: Failure in initialisation: java.lang.NullPointerException at org.apache.activemq.artemis.core.server.impl.BackupRecoveryJournalLoader.postLoad(BackupRecoveryJournalLoader.java:93) at org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager.loadMessageJournal(JournalStorageManager.java:1947) at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:1977) at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:1840) at org.apache.activemq.artemis.core.server.impl.SharedStoreBackupActivation.run(SharedStoreBackupActivation.java:88) at java.lang.Thread.run(Thread.java:745)
The NPE is caused by the slave's parentServer which is null.