ARTEMIS-2807 avoid notifications on critical IO error

This commit is contained in:
Justin Bertram 2020-06-16 15:11:44 -05:00 committed by Clebert Suconic
parent 8e8bbc93ac
commit 79e05774b8
1 changed files with 5 additions and 0 deletions

View File

@ -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;