activemq-artemis git commit: [ARTEMIS-2050] It is possible to get AMQ224000: Failure in initialisation: java.lang.NullPointerException during shutdown of backup server with shared store

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

activemq-artemis git commit: [ARTEMIS-2050] It is possible to get AMQ224000: Failure in initialisation: java.lang.NullPointerException during shutdown of backup server with shared store

jbertram
Repository: activemq-artemis
Updated Branches:
  refs/heads/1.x c957ffb20 -> 7b15f4277


[ARTEMIS-2050] It is possible to get AMQ224000: Failure in initialisation: java.lang.NullPointerException during shutdown of backup server with shared store

(cherry picked from commit 3c3c81720a93e7617fca757dd9df49cd3b590d96)


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/7b15f427
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/7b15f427
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/7b15f427

Branch: refs/heads/1.x
Commit: 7b15f4277f17c65ce3297b499d1b86ce0e20a3f6
Parents: c957ffb
Author: JiriOndrusek <[hidden email]>
Authored: Fri Aug 24 09:14:02 2018 +0200
Committer: Justin Bertram <[hidden email]>
Committed: Fri Dec 14 19:16:58 2018 -0600

----------------------------------------------------------------------
 .../artemis/core/server/impl/SharedStoreBackupActivation.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7b15f427/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/SharedStoreBackupActivation.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/SharedStoreBackupActivation.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/SharedStoreBackupActivation.java
index c93c726..0c52a29 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/SharedStoreBackupActivation.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/SharedStoreBackupActivation.java
@@ -114,7 +114,7 @@ public final class SharedStoreBackupActivation extends Activation {
 
             activeMQServer.getNodeManager().releaseBackup();
          }
-         if (sharedStoreSlavePolicy.isAllowAutoFailBack()) {
+         if (sharedStoreSlavePolicy.isAllowAutoFailBack() && ActiveMQServerImpl.SERVER_STATE.STOPPING != activeMQServer.getState() && ActiveMQServerImpl.SERVER_STATE.STOPPED != activeMQServer.getState()) {
             startFailbackChecker();
          }
       } catch (ClosedChannelException | InterruptedException e) {