From 699be2dc47f5e48593e6cd3058b1b87624765062 Mon Sep 17 00:00:00 2001 From: Albumen Kevin Date: Mon, 30 Sep 2024 10:34:06 +0800 Subject: [PATCH] Disable check when create MetadataService invoker to prevent memory leak --- .../apache/dubbo/registry/client/metadata/MetadataUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/metadata/MetadataUtils.java b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/metadata/MetadataUtils.java index 9e4ed1de64a..bb5953f1906 100644 --- a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/metadata/MetadataUtils.java +++ b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/metadata/MetadataUtils.java @@ -44,6 +44,7 @@ import java.util.Map; import java.util.concurrent.ThreadLocalRandom; +import static org.apache.dubbo.common.constants.CommonConstants.CHECK_KEY; import static org.apache.dubbo.common.constants.CommonConstants.CONSUMER_SIDE; import static org.apache.dubbo.common.constants.CommonConstants.PROVIDER_SIDE; import static org.apache.dubbo.common.constants.CommonConstants.PROXY_CLASS_REF; @@ -150,6 +151,7 @@ public static ProxyHolder referProxy(ServiceInstance instance) { ProxyFactory proxyFactory = applicationModel.getExtensionLoader(ProxyFactory.class).getAdaptiveExtension(); + url = url.addParameter(CHECK_KEY, false); MetadataService metadataService = proxyFactory.getProxy(invoker);