[
https://issues.apache.org/jira/browse/ARTEMIS-3755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Clebert Suconic closed ARTEMIS-3755.
------------------------------------
Resolution: Fixed
> Mitigate NPE related to fail-back
> ---------------------------------
>
> Key: ARTEMIS-3755
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3755
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
> Fix For: 2.22.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> When configuring HA _without_ a {{cluster-connection}} this NPE is thrown on
> the backup when the it becomes live:
> {noformat}
> INFO [org.apache.activemq.artemis.core.server] AMQ221010: Backup Server is
> now live
> ERROR [org.apache.activemq.artemis.core.server] AMQ224000: Failure in
> initialisation: java.lang.NullPointerException
> at
> org.apache.activemq.artemis.core.server.impl.SharedStoreBackupActivation$FailbackChecker.<init>(SharedStoreBackupActivation.java:256)
> at
> org.apache.activemq.artemis.core.server.impl.SharedStoreBackupActivation.startFailbackChecker(SharedStoreBackupActivation.java:248)
> at
> org.apache.activemq.artemis.core.server.impl.SharedStoreBackupActivation.run(SharedStoreBackupActivation.java:138)
> at
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$ActivationThread.run(ActiveMQServerImpl.java:4271){noformat}
> HA without a {{cluster-connection}} is an invalid configuration, but it still
> shouldn't thrown an NPE. It should log a WARN instead.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)