Core: load alert store before the action manager, b/c action depends on alert store

Original commit: elastic/x-pack-elasticsearch@6aa3cb33b0
This commit is contained in:
Martijn van Groningen 2014-11-26 22:51:34 +01:00
parent 56a121109d
commit e4d10c58a9
1 changed files with 3 additions and 3 deletions

View File

@ -224,15 +224,15 @@ public class AlertManager extends AbstractComponent {
private void internalStart(ClusterState initialState) {
if (state.compareAndSet(State.STOPPED, State.STARTING)) {
ClusterState clusterState = initialState;
// Try to load alert store before the action manager, b/c action depends on alert store
while (true) {
if (actionManager.start(clusterState)) {
if (alertsStore.start(clusterState)) {
break;
}
clusterState = newClusterState(clusterState);
}
while (true) {
if (alertsStore.start(clusterState)) {
if (actionManager.start(clusterState)) {
break;
}
clusterState = newClusterState(clusterState);