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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • AMQ 7.7.0.CR2
    • 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.
    • AMQ Broker 1839, AMQ Broker 1842, AMQ Broker 1845, AMQ Broker 0219, AMQ Broker 0519, AMQ Broker 1119

      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]
      

            dbruscin Domenico Francesco Bruscino
            rhn-support-pfox Patrick Fox (Inactive)
            Tiago Bueno Tiago Bueno
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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