lifecycle: upon node shutdown make clear it is a manual stop, so that potential cluster states that come in after the LifyCycle#beforeStop can't start watcher.

Original commit: elastic/x-pack-elasticsearch@e2522a21fc
This commit is contained in:
Martijn van Groningen 2015-06-24 06:56:01 +02:00
parent c4dbb8d794
commit 26a72e4d21
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ public class WatcherLifeCycleService extends AbstractComponent implements Cluste
clusterService.addLifecycleListener(new LifecycleListener() {
@Override
public void beforeStop() {
stop(false);
stop(true);
}
});
manuallyStopped = !settings.getAsBoolean("watcher.start_immediately", true);