nullify the updater on stop
This commit is contained in:
parent
c4d6ccd07b
commit
2e2f22fbd6
|
@ -65,6 +65,7 @@ public class RoutingService extends AbstractLifecycleComponent<RoutingService> i
|
||||||
@Override protected void doStop() throws ElasticSearchException {
|
@Override protected void doStop() throws ElasticSearchException {
|
||||||
if (scheduledRoutingTableFuture != null) {
|
if (scheduledRoutingTableFuture != null) {
|
||||||
scheduledRoutingTableFuture.cancel(true);
|
scheduledRoutingTableFuture.cancel(true);
|
||||||
|
scheduledRoutingTableFuture = null;
|
||||||
}
|
}
|
||||||
clusterService.remove(this);
|
clusterService.remove(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue