Merge pull request #198 from alibaba/hotfix_update_service_error

Fix #197
This commit is contained in:
Fury Zhu 2018-11-07 10:11:42 +08:00 committed by GitHub
commit bdc3026798
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -496,11 +496,18 @@ public class VirtualClusterDomain implements Domain, RaftListener {
enableHealthCheck = vDom.getEnableHealthCheck(); 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()) { if (enabled != vDom.getEnabled().booleanValue()) {
Loggers.SRV_LOG.info("[DOM-UPDATE] dom: " + name + ", enabled: " + enabled + " -> " + vDom.getEnabled()); Loggers.SRV_LOG.info("[DOM-UPDATE] dom: " + name + ", enabled: " + enabled + " -> " + vDom.getEnabled());
enabled = vDom.getEnabled(); enabled = vDom.getEnabled();
} }
metadata = vDom.getMetadata();
updateOrAddCluster(vDom.getClusterMap().values()); updateOrAddCluster(vDom.getClusterMap().values());
remvDeadClusters(this, vDom); remvDeadClusters(this, vDom);
recalculateChecksum(); recalculateChecksum();