Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-3570

[AMQ 7.2, shared store, scale down] NullPointer exception when slave activates and tries to scale down

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • AMQ 7.4.4.CR1
    • AMQ 7.2.0.GA
    • broker-core
    • None
    • 1
    • Release Notes
    • +
    • Previously, if you configured a slave broker to use a shared store and scaledown in a cluster, you could encounter an exception on the slave if the master broker went offline. This issue is resolved.
    • Documented as Resolved Issue
    • Verified in a release
    • Hide
      • configure slave (shared store) as described in "description" section.
      • kill the master broker
      • NullPointerException is reported.
      Show
      configure slave (shared store) as described in "description" section. kill the master broker NullPointerException is reported.

    Description

      Using the following configuration on the slave where server1-connector points to another
      broker in the broker cluster.

        <ha-policy>
               <shared-store>
                  <slave>
                     <failover-on-shutdown>true</failover-on-shutdown>
                     <restart-backup>true</restart-backup>
                     <scale-down>
                       <connectors>
                         <connector-ref>server1-connector</connector-ref>
                       </connectors>
                     </scale-down>
                  </slave>
               </shared-store>
            </ha-policy>
      

      I am getting the following NullPointerException when the slave tries to activate.

      2018-09-03 20:45:12,970 ERROR [org.apache.activemq.artemis.core.server] AMQ224000: Failure in initialisation: java.lang.NullPointerException
      	at org.apache.activemq.artemis.core.server.impl.BackupRecoveryJournalLoader.postLoad(BackupRecoveryJournalLoader.java:90) [artemis-server-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      	at org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.loadMessageJournal(AbstractJournalStorageManager.java:1191) [artemis-server-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:2621) [artemis-server-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:2376) [artemis-server-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      	at org.apache.activemq.artemis.core.server.impl.SharedStoreBackupActivation.run(SharedStoreBackupActivation.java:90) [artemis-server-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$ActivationThread.run(ActiveMQServerImpl.java:3127) [artemis-server-2.6.1.amq-720008.jar:2.6.1.amq-720008]
      

      Attachments

        Issue Links

          Activity

            People

              dbruscin Domenico Francesco Bruscino
              dbruscin Domenico Francesco Bruscino
              Tiago Bueno Tiago Bueno
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 4 hours
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified