You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/05/11 14:35:59 UTC

[jira] [Commented] (ACTIVEMQ6-102) NPE during shared store slave activation

    [ https://issues.apache.org/jira/browse/ACTIVEMQ6-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14537883#comment-14537883 ] 

ASF GitHub Bot commented on ACTIVEMQ6-102:
------------------------------------------

GitHub user andytaylor opened a pull request:

    https://github.com/apache/activemq-artemis/pull/239

    ACTIVEMQ6-102 - fix check for scaledown when creating journal loader

    https://issues.apache.org/jira/browse/ACTIVEMQ6-102

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/andytaylor/activemq-artemis master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/activemq-artemis/pull/239.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 #239
    
----
commit 0b50aaba21ea8cb55cd45d64547d1a4108da2788
Author: Andy Taylor <an...@gmail.com>
Date:   2015-05-11T12:22:09Z

    ACTIVEMQ6-102 - fix check for scaledown when creating journal loader
    
    https://issues.apache.org/jira/browse/ACTIVEMQ6-102

----


> NPE during shared store slave activation
> ----------------------------------------
>
>                 Key: ACTIVEMQ6-102
>                 URL: https://issues.apache.org/jira/browse/ACTIVEMQ6-102
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Jeff Mesnil
>
> 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:
> {noformat}
> 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)
> {noformat}
> The NPE is caused by the slave's parentServer which is null.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)