zrlw commented on a change in pull request #9003:
URL: https://github.com/apache/dubbo/pull/9003#discussion_r727830182
##########
File path:
dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/deploy/DefaultApplicationDeployer.java
##########
@@ -927,8 +930,18 @@ 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 (compositeDynamicConfiguration != null) {
+
compositeDynamicConfiguration.getInnerConfigurations().forEach(dynamicConfiguration
-> {
+ try {
+ dynamicConfiguration.close();
+ } catch (Throwable ignored) {
+ logger.warn(ignored.getMessage(), ignored);
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]