Skip to content

Commit

Permalink
Merge pull request alibaba#198 from alibaba/hotfix_update_service_error
Browse files Browse the repository at this point in the history
  • Loading branch information
Fury Zhu authored Nov 7, 2018
2 parents 3cbcbe9 + 50be11d commit bdc3026
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -496,11 +496,18 @@ public void update(Domain dom) {
enableHealthCheck = vDom.getEnableHealthCheck();
}

if (enableClientBeat != vDom.getEnableClientBeat().booleanValue()) {
Loggers.SRV_LOG.info("[DOM-UPDATE] dom: " + name + ", enableClientBeat: " + enableClientBeat + " -> " + vDom.getEnableClientBeat());
enableClientBeat = vDom.getEnableClientBeat();
}

if (enabled != vDom.getEnabled().booleanValue()) {
Loggers.SRV_LOG.info("[DOM-UPDATE] dom: " + name + ", enabled: " + enabled + " -> " + vDom.getEnabled());
enabled = vDom.getEnabled();
}

metadata = vDom.getMetadata();

updateOrAddCluster(vDom.getClusterMap().values());
remvDeadClusters(this, vDom);
recalculateChecksum();
Expand Down

0 comments on commit bdc3026

Please sign in to comment.