Removed redundant if statement
Original commit: elastic/x-pack-elasticsearch@2de43dc7d5
This commit is contained in:
parent
1258a4c327
commit
aeacbe44ca
|
@ -265,6 +265,7 @@ public class AlertManager extends AbstractComponent {
|
|||
if (configurationManager.start(initialState)) {
|
||||
break;
|
||||
}
|
||||
logger.error("CONFIG NOT STARTED");
|
||||
clusterState = newClusterState(clusterState);
|
||||
}
|
||||
// Try to load alert store before the action manager, b/c action depends on alert store
|
||||
|
@ -272,12 +273,14 @@ public class AlertManager extends AbstractComponent {
|
|||
if (alertsStore.start(clusterState)) {
|
||||
break;
|
||||
}
|
||||
logger.error("STORE NOT STARTED");
|
||||
clusterState = newClusterState(clusterState);
|
||||
}
|
||||
while (true) {
|
||||
if (actionManager.start(clusterState)) {
|
||||
break;
|
||||
}
|
||||
logger.error("ACTION NOT STARTED");
|
||||
clusterState = newClusterState(clusterState);
|
||||
}
|
||||
|
||||
|
|
|
@ -152,10 +152,6 @@ public class AlertsStore extends AbstractComponent {
|
|||
return true;
|
||||
}
|
||||
|
||||
if (!configurationManager.start(state)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
IndexMetaData alertIndexMetaData = state.getMetaData().index(ALERT_INDEX);
|
||||
if (alertIndexMetaData != null) {
|
||||
logger.debug("Previous alerting index");
|
||||
|
|
Loading…
Reference in New Issue