Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-2409

AMQ 6: ExceptionHandler systemExitOnShutdown ignored

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • JBoss A-MQ 6.3
    • broker
    • None
    • False
    • False
    • Undefined
    • Workaround Exists
    • Hide

      Give the broker bean an id, and pass it as a ref to the inner class that is used to systemExit the broker if systemExitOnShutdown was in effect on the broker element.
      If the keepAlive thread gets to shutdown the broker, it will invoke that runtime hook and exit with whatever value is configured as the systemExitOnShutdownExitCode.

          <broker xmlns="http://activemq.apache.org/schema/core" id="broker" brokerName="${broker-name}" ... systemExitOnShutdownExitCode="5" >
      
              <!-- system exit on broker stop without systemExitOnShutdown="true" -->
              <shutdownHooks>
                  <bean xmlns="http://www.springframework.org/schema/beans" class="org.apache.activemq.broker.BrokerService$4">
                   <constructor-arg ref="broker" />
                  </bean>
              </shutdownHooks>
             ... 
      Show
      Give the broker bean an id, and pass it as a ref to the inner class that is used to systemExit the broker if systemExitOnShutdown was in effect on the broker element. If the keepAlive thread gets to shutdown the broker, it will invoke that runtime hook and exit with whatever value is configured as the systemExitOnShutdownExitCode. <broker xmlns= "http: //activemq.apache.org/schema/core" id= "broker" brokerName= "${broker-name}" ... systemExitOnShutdownExitCode= "5" > <!-- system exit on broker stop without systemExitOnShutdown= " true " --> <shutdownHooks> <bean xmlns= "http: //www.springframework.org/schema/beans" class= "org.apache.activemq.broker.BrokerService$4" > <constructor-arg ref= "broker" /> </bean> </shutdownHooks> ...
    • Hide
      • A-MQ 6.3 R14
      • NFS noac,rw,tcp,soft,timeo=1,intr,retrans=1,lookupcache=none,sync,bg (timeout and retry reduced for testing)

      Run the broker with the configuration in attach using an NFS mount as a store then stop the mount.

      Show
      A-MQ 6.3 R14 NFS noac,rw,tcp,soft,timeo=1,intr,retrans=1,lookupcache=none,sync,bg (timeout and retry reduced for testing) Run the broker with the configuration in attach using an NFS mount as a store then stop the mount.

    Description

      The exception handler option systemExitOnShutdown is ignored when the broker shutdown for an NFS store fault.

      In attach broker logs, thread-dump, mount options and broker configuration.

      Attachments

        Activity

          People

            gtully@redhat.com Gary Tully
            rhn-support-agagliar Antonio Gagliardi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: