mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 14:05:27 +00:00
Moved the stopping log info message
Original commit: elastic/x-pack-elasticsearch@0391704846
This commit is contained in:
parent
b883641b01
commit
c094430584
@ -212,6 +212,7 @@ public class AlertManager extends AbstractComponent {
|
||||
|
||||
private void internalStop() {
|
||||
if (state.compareAndSet(State.STARTED, State.STOPPING)) {
|
||||
logger.info("Stopping alert manager...");
|
||||
while (true) {
|
||||
// It can happen we have still ongoing operations and we wait those operations to finish to avoid
|
||||
// that AlertManager or any of its components end up in a illegal state after the state as been set to stopped.
|
||||
@ -226,7 +227,6 @@ public class AlertManager extends AbstractComponent {
|
||||
}
|
||||
}
|
||||
|
||||
logger.info("Stopping alert manager...");
|
||||
actionManager.stop();
|
||||
scheduler.stop();
|
||||
alertsStore.stop();
|
||||
|
Loading…
x
Reference in New Issue
Block a user