From 4d98800ea161af6f43b99f8f3c41de384be968cf Mon Sep 17 00:00:00 2001 From: Liu Ziming Date: Thu, 19 Jan 2023 16:56:37 +0800 Subject: [PATCH] fix: fix the bug that the eds protocol is never observed (#3109) fix: fix the bug that the eds protocol is never observed --- .../java/com/alibaba/cloud/governance/istio/PilotExchanger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-alibaba-starters/spring-cloud-starter-xds-adapter/src/main/java/com/alibaba/cloud/governance/istio/PilotExchanger.java b/spring-cloud-alibaba-starters/spring-cloud-starter-xds-adapter/src/main/java/com/alibaba/cloud/governance/istio/PilotExchanger.java index d442c8b77..0c769303b 100644 --- a/spring-cloud-alibaba-starters/spring-cloud-starter-xds-adapter/src/main/java/com/alibaba/cloud/governance/istio/PilotExchanger.java +++ b/spring-cloud-alibaba-starters/spring-cloud-starter-xds-adapter/src/main/java/com/alibaba/cloud/governance/istio/PilotExchanger.java @@ -64,7 +64,7 @@ public class PilotExchanger { private void observeClusters(List clusters) { Set resourceName = cdsProtocol.getResourceNames(); - if (CollectionUtils.isEmpty(resourceName)) { + if (!CollectionUtils.isEmpty(resourceName)) { // eds edsProtocol.observeResource(resourceName, this::observeEndpoints); }