From 2e2f22fbd6c4999fd68c6ba0b6df49e27f0db020 Mon Sep 17 00:00:00 2001 From: kimchy Date: Wed, 14 Jul 2010 08:55:57 +0300 Subject: [PATCH] nullify the updater on stop --- .../java/org/elasticsearch/cluster/routing/RoutingService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/cluster/routing/RoutingService.java b/modules/elasticsearch/src/main/java/org/elasticsearch/cluster/routing/RoutingService.java index 9f613f85a5f..7fbf2142d1a 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/cluster/routing/RoutingService.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/cluster/routing/RoutingService.java @@ -65,6 +65,7 @@ public class RoutingService extends AbstractLifecycleComponent i @Override protected void doStop() throws ElasticSearchException { if (scheduledRoutingTableFuture != null) { scheduledRoutingTableFuture.cancel(true); + scheduledRoutingTableFuture = null; } clusterService.remove(this); }