You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/10/10 00:15:34 UTC

[GitHub] [dubbo] zrlw commented on a change in pull request #9003: [3.0] close dynamic configuration to fix configCenter connection leak

zrlw commented on a change in pull request #9003:
URL: https://github.com/apache/dubbo/pull/9003#discussion_r725553581



##########
File path: dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/deploy/DefaultApplicationDeployer.java
##########
@@ -924,8 +924,21 @@ private void destroyMetadataReports() {
     private void destroyDynamicConfigurations() {
         // TODO only destroy DynamicConfiguration of this application
         // DynamicConfiguration may be cached somewhere, and maybe used during destroy
-        // destroy them may cause some troubles, so just clear instances cache
-        // ExtensionLoader.resetExtensionLoader(DynamicConfigurationFactory.class);
+        // destroy them may cause some troubles,
+        // but let them go also cause troubles such as configCenter connection leak.
+        if (environment.getDynamicConfiguration().isPresent() &&
+            environment.getDynamicConfiguration().get() instanceof CompositeDynamicConfiguration) {

Review comment:
       done




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org