Skip to content

Commit

Permalink
Merge pull request alibaba#1002 from alibaba/hotfix_remove_service_fa…
Browse files Browse the repository at this point in the history
…iled

alibaba#961 init cluster after instantiate cluster
  • Loading branch information
Fury Zhu authored Apr 4, 2019
2 parents 539280c + 35edfd4 commit 53d154d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ public void init() {
}

public void destroy() {
checkTask.setCancelled(true);
if (checkTask != null) {
checkTask.setCancelled(true);
}
}

public HealthCheckTask getHealthCheckTask() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ public void updateIPs(Collection<Instance> instances, boolean ephemeral) {
instance.getClusterName(), instance.toJSON());
Cluster cluster = new Cluster(instance.getClusterName());
cluster.setService(this);
cluster.init();
getClusterMap().put(instance.getClusterName(), cluster);
}

Expand Down

0 comments on commit 53d154d

Please sign in to comment.