[
https://issues.apache.org/jira/browse/ARTEMIS-2050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16591247#comment-16591247
]
ASF GitHub Bot commented on ARTEMIS-2050:
-----------------------------------------
GitHub user JiriOndrusek opened a pull request:
https://github.com/apache/activemq-artemis/pull/2264
[ARTEMIS-2050] It is possible to get AMQ224000: Failure in initialisa…
…tion: java.lang.NullPointerException during shutdown of backup server with
shared store
Issue: https://issues.apache.org/jira/browse/ARTEMIS-2050
Simple fix, which prevents creation of FailbackChecker in moment, when
server is stopping (or stopped)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/JiriOndrusek/activemq-artemis
ARTEMIS-2050_backup_shutdown-NPE
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/activemq-artemis/pull/2264.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2264
----
commit 672c929b4145b2ef9eb1efdc16130770c6b92913
Author: JiriOndrusek <jondruse@...>
Date: 2018-08-24T07:14:02Z
[ARTEMIS-2050] It is possible to get AMQ224000: Failure in initialisation:
java.lang.NullPointerException during shutdown of backup server with shared
store
----
> It is possible to get AMQ224000: Failure in initialisation:
> java.lang.NullPointerException during shutdown of backup server with shared
> store
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: ARTEMIS-2050
> URL: https://issues.apache.org/jira/browse/ARTEMIS-2050
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Affects Versions: 1.5.5
> Reporter: Jiri Ondrusek
> Priority: Major
>
> On system with slower reactions, there could be a NullPointerException in log.
>
> Problem happens during shutdown of backup server during activation (using
> SharedStoreBackupActivation)
> Scenario: live/backup pair with shared store. Live is stopped and then backup
> is stopped before activation is complete. On slower machines, there is a
> possibility, that FailbackChecker is initialized even if cluster connection
> is cleared to null (because of shutting down). This ends with NPE during
> backup shutdown.
> It is possible to simulate it with SharedStoreBackupTest with addition of
> Thread.sleep(500) into begining of
> SharedStoreBackupActivation.startFailbackChecker. Exception can be then seen
> in test output.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)