Skip to content

Commit

Permalink
ARTEMIS-2807 avoid notifications on critical IO error
Browse files Browse the repository at this point in the history
  • Loading branch information
jbertram authored and clebertsuconic committed Jun 17, 2020
1 parent 8e8bbc9 commit 79e0577
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -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;
Expand Down

0 comments on commit 79e0577

Please sign in to comment.