Skip to content

Commit 13e876e

Browse files
vio-linbeiwei30
authored andcommitted
fix client retry create proxy lead to OOM (#4109)
1 parent 1a66206 commit 13e876e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ReferenceConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ private T createProxy(Map<String, String> map) {
356356
logger.info("Using injvm service " + interfaceClass.getName());
357357
}
358358
} else {
359+
urls.clear(); // reference retry init will add url to urls, lead to OOM
359360
if (url != null && url.length() > 0) { // user specified URL, could be peer-to-peer address, or register center's address.
360361
String[] us = SEMICOLON_SPLIT_PATTERN.split(url);
361362
if (us != null && us.length > 0) {

0 commit comments

Comments
 (0)