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.