diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java index d40a50b7cff..9910091cd76 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java @@ -1071,6 +1071,11 @@ void stop(boolean failoverOnServerShutdown, final boolean criticalIOError, boole } state = SERVER_STATE.STOPPING; + if (criticalIOError) { + // notifications trigger disk IO so we don't want to send any on a critical IO error + managementService.enableNotifications(false); + } + if (fileStoreMonitor != null) { fileStoreMonitor.stop(); fileStoreMonitor = null;