when restarting, the latest cluster state should be cleared

This commit is contained in:
kimchy 2010-05-13 15:39:55 +03:00
parent e87a4117b6
commit d2bc6ace83
1 changed files with 1 additions and 0 deletions

View File

@ -133,6 +133,7 @@ public class ZenDiscovery extends AbstractLifecycleComponent<Discovery> implemen
}
}
localNode = new DiscoveryNode(settings.get("name"), UUID.randomUUID().toString(), transportService.boundAddress().publishAddress(), nodeAttributes);
latestDiscoNodes = new DiscoveryNodes.Builder().put(localNode).localNodeId(localNode.id()).build();
pingService.start();
if (nodeAttributes.containsKey("zen.master") && nodeAttributes.get("zen.master").equals("false")) {