Added a todo

Original commit: elastic/x-pack-elasticsearch@56f5b1326b
This commit is contained in:
Martijn van Groningen 2014-10-28 16:35:41 +01:00
parent 879d88edac
commit 34c359281a
1 changed files with 3 additions and 0 deletions

View File

@ -544,6 +544,9 @@ public class AlertManager extends AbstractLifecycleComponent {
if (alertIndexMetaData != null) {
if (event.state().routingTable().index(ALERT_INDEX).allPrimaryShardsActive()) {
started.set(true);
// TODO: the starter flag should only be set to true once the alert loader has completed.
// Right now there is a window of time between when started=true and loading has completed where
// alerts can get lost
threadPool.executor(ThreadPool.Names.GENERIC).execute(new AlertLoader());
}
}