From 3e37ac4bf257102c821c0b8c27cb9208f30095dd Mon Sep 17 00:00:00 2001 From: KomachiSion <263976490@qq.com> Date: Thu, 4 Jun 2020 15:09:18 +0800 Subject: [PATCH] Fix 1.3 version don't report server status to lower version. --- .../com/alibaba/nacos/naming/cluster/ServerListManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/naming/src/main/java/com/alibaba/nacos/naming/cluster/ServerListManager.java b/naming/src/main/java/com/alibaba/nacos/naming/cluster/ServerListManager.java index ed1adf622..75e86a65c 100644 --- a/naming/src/main/java/com/alibaba/nacos/naming/cluster/ServerListManager.java +++ b/naming/src/main/java/com/alibaba/nacos/naming/cluster/ServerListManager.java @@ -210,7 +210,8 @@ public class ServerListManager implements MemberChangeListener { // This metadata information exists from 1.3.0 onwards "version" if (server.getExtendVal(MemberMetaDataConstants.VERSION) != null) { - return; + Loggers.SRV_LOG.debug("[SERVER-STATUS] target {} has extend val {} = {}, use new api report status", server.getAddress(), MemberMetaDataConstants.VERSION, server.getExtendVal(MemberMetaDataConstants.VERSION)); + continue; } Message msg = new Message(); @@ -228,4 +229,4 @@ public class ServerListManager implements MemberChangeListener { } } -} \ No newline at end of file +}