From 50be11d0ef04c17f9125a9c0b4bafd008738a112 Mon Sep 17 00:00:00 2001 From: nkorange Date: Wed, 31 Oct 2018 15:48:24 +0800 Subject: [PATCH] Fix #197 --- .../alibaba/nacos/naming/core/VirtualClusterDomain.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/naming/src/main/java/com/alibaba/nacos/naming/core/VirtualClusterDomain.java b/naming/src/main/java/com/alibaba/nacos/naming/core/VirtualClusterDomain.java index b8a2554bf..287e4a4b4 100644 --- a/naming/src/main/java/com/alibaba/nacos/naming/core/VirtualClusterDomain.java +++ b/naming/src/main/java/com/alibaba/nacos/naming/core/VirtualClusterDomain.java @@ -496,11 +496,18 @@ public class VirtualClusterDomain implements Domain, RaftListener { 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();