No need to clear the scheduler when it is going to be shut down.
Original commit: elastic/x-pack-elasticsearch@5e8e4134ee
This commit is contained in:
parent
3c896c3d44
commit
53ef534567
|
@ -72,11 +72,11 @@ public class AlertScheduler extends AbstractComponent {
|
||||||
*/
|
*/
|
||||||
public synchronized void stop() {
|
public synchronized void stop() {
|
||||||
try {
|
try {
|
||||||
|
Scheduler scheduler = this.scheduler;
|
||||||
if (scheduler != null) {
|
if (scheduler != null) {
|
||||||
logger.info("Stopping scheduler...");
|
logger.info("Stopping scheduler...");
|
||||||
scheduler.clear();
|
|
||||||
scheduler.shutdown(true);
|
scheduler.shutdown(true);
|
||||||
scheduler = null;
|
this.scheduler = null;
|
||||||
logger.info("Stopped scheduler");
|
logger.info("Stopped scheduler");
|
||||||
}
|
}
|
||||||
} catch (SchedulerException se){
|
} catch (SchedulerException se){
|
||||||
|
|
Loading…
Reference in New Issue