liubao68 commented on issue #1859:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1859#issuecomment-656525482


   你可以试试在 URLMappedEdgeDispatcher 下面的代码打个断点看看,更新配置的时候, 这个 listener 是否被执行到。 
   
   ```
     private void loadConfigurations() {
       ConcurrentCompositeConfiguration config = 
(ConcurrentCompositeConfiguration) DynamicPropertyFactory
           .getBackingConfigurationSource();
       configurations = URLMappedConfigurationLoader.loadConfigurations(config, 
KEY_MAPPING_PREFIX);
       config.addConfigurationListener(event -> {
         if (event.getPropertyName().startsWith(KEY_MAPPING_PREFIX)) {
           LOG.info("Map rule have been changed. Reload configurations. Event=" 
+ event.getType());
           configurations = 
URLMappedConfigurationLoader.loadConfigurations(config, KEY_MAPPING_PREFIX);
         }
       });
     }
   ```


----------------------------------------------------------------
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.

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


Reply via email to