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

mq-fabric not attempting to restart broker after IOException

    XMLWordPrintable

Details

    • Hide

      See attached unit test ServiceFactoryTest.java and test method testStartRetryOnIOException().
      Test uses broker config attached in amq-kahadb.xml

      Test can be applied to origin/1.2.0.redhat-6-3-x branch.

      Show
      See attached unit test ServiceFactoryTest.java and test method testStartRetryOnIOException() . Test uses broker config attached in amq-kahadb.xml Test can be applied to origin/1.2.0.redhat-6-3-x branch.

    Description

      If the broker encounters an IOException from the persistence store, it correctly shuts down.
      However the mq-fabric bundle is supposed to attempt to restart the broker thereafter.
      This is not happening in this particular case.

      Relevant broker log contains:

      ERROR | ervice[mybroker] | KahaDBStore                      | 113 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-630224 | Could not stop service: KahaDB:[/Volumes/Untitled/kahadb/kahadb]. Reason: java.io.IOException: Input/output error
      java.io.IOException: Input/output error
      INFO  | ervice[mybroker] | BrokerService                    | 113 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-630224 | Apache ActiveMQ 5.11.0.redhat-630224 (mybroker, ID:Mac.fritz.box-55652-1507190736657-0:1) is shutting down
      INFO  | ervice[mybroker] | TransportConnector               | 113 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-630224 | Connector openwire stopped
      INFO  | ervice[mybroker] | KahaDBStore                      | 113 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-630224 | Stopped KahaDB
      INFO  | ervice[mybroker] | BrokerService                    | 113 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-630224 | Apache ActiveMQ 5.11.0.redhat-630224 (mybroker, ID:Mac.fritz.box-55652-1507190736657-0:1) uptime 25 minutes
      INFO  | ervice[mybroker] | BrokerService                    | 113 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-630224 | Apache ActiveMQ 5.11.0.redhat-630224 (mybroker, ID:Mac.fritz.box-55652-1507190736657-0:1) is shutdown
      INFO  | ervice[mybroker] | ActiveMQServiceFactory           | 101 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-630224 | Broker 'mybroker' shut down, giving up being master
      INFO  | ervice[mybroker] | ActiveMQServiceFactory           | 101 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-630224 | Disconnected from the group mybroker
      INFO  | ervice[mybroker] | ActiveMQServiceFactory           | 101 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-630224 | Stopping the broker mybroker.
      INFO  | AMQ-1-thread-1   | ActiveMQServiceFactory$1         | 127 - org.apache.servicemix.bundles.spring-context - 3.2.16.RELEASE_1 | Closing io.fabric8.mq.fabric.ActiveMQServiceFactory$1@3c8042e8: startup date [Thu Oct 05 10:05:28 CEST 2017]; root of context hierarchy
      INFO  | AMQ-1-thread-1   | DefaultListableBeanFactory       | 126 - org.apache.servicemix.bundles.spring-beans - 3.2.16.RELEASE_1 | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@313d788b: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,org.apache.activemq.xbean.XBeanBrokerService#0]; root of factory hierarchy
      INFO  | ervice[mybroker] | ActiveMQServiceFactory           | 101 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-630224 | Found zookeeper service for broker mybroker.
      INFO  | ervice[mybroker] | ZooKeeperGroup                   | 83 - io.fabric8.fabric-groups - 1.2.0.redhat-630224 | Creating ZK Group for path "/fabric/registry/clusters/amq/default"
      INFO  | ervice[mybroker] | ActiveMQServiceFactory           | 101 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-630224 | Broker mybroker is waiting to become the master
      

      But there is no further logging afterwards. No attempts to restart the broker.

      Attachments

        Activity

          People

            gtully@redhat.com Gary Tully
            rhn-support-tmielke Torsten Mielke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: