Skip to content

Commit

Permalink
Disable check when create MetadataService invoker to prevent memory l…
Browse files Browse the repository at this point in the history
…eak (#14732)
  • Loading branch information
AlbumenJ authored Sep 30, 2024
1 parent 6ec002d commit 71af8ac
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 71af8ac

Please sign in to comment.