jihanchen888 opened a new issue, #12337:
URL: https://github.com/apache/dubbo/issues/12337
在进行消费端应用级配置刷新时候,发现下面代码中overrideQueryMap中的条件一直没进入,最终每次都会被 new
OverrideInstanceAddressURL(url) 中的配置 this.overrideParams =
URLParam.parse("");刷新为空,导致配置中心配置变更了也效果,看代码理解的overrideQueryMap应该是有用的,现在看好像没发现有值,这是为什么?
if (referenceConfigurationListener != null) {
providerUrl =
overrideWithConfigurators(referenceConfigurationListener.getConfigurators(),
providerUrl);
}
private InstanceAddressURL overrideWithConfigurators(List<Configurator>
configurators, InstanceAddressURL url) {
if (CollectionUtils.isNotEmpty(configurators)) {
// wrap url
OverrideInstanceAddressURL overrideInstanceAddressURL = new
OverrideInstanceAddressURL(url);
if (overrideQueryMap != null) {
// override app-level configs
overrideInstanceAddressURL = (OverrideInstanceAddressURL)
overrideInstanceAddressURL.addParameters(overrideQueryMap);
}
for (Configurator configurator : configurators) {
overrideInstanceAddressURL = (OverrideInstanceAddressURL)
configurator.configure(overrideInstanceAddressURL);
}
return overrideInstanceAddressURL;
}
return url;
}
--
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]