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:
parent
c4dbb8d794
commit
26a72e4d21
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue