From 79e05774b873d63a87ec73ce0c2de2040a9b63dd Mon Sep 17 00:00:00 2001 From: Justin Bertram Date: Tue, 16 Jun 2020 15:11:44 -0500 Subject: [PATCH] ARTEMIS-2807 avoid notifications on critical IO error --- .../artemis/core/server/impl/ActiveMQServerImpl.java | 5 +++++ 1 file changed, 5 insertions(+) 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 d40a50b7cf..9910091cd7 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 @@ public class ActiveMQServerImpl implements ActiveMQServer { } 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;