[ISSUE #11968] Buf fix: Use put() instead of putIfAbsent() for setArg() in ConfigChangeRequest (#11971)
* Fixed an issue where the maximum number of anti-fragile plug-ins implemented by default in Nacos is one more than the actual number of connections. * bug fix : 修改删除空服务实例时,服务名和分组名没有正确解析的问题 * Update ConfigChangeAspect.java 修改configChangeRequest.setArg()的key为serviceType * Update ConfigChangeAspect.java * Update ConfigChangeRequest.java
This commit is contained in:
parent
2bb7193d1b
commit
96814ff00d
@ -311,7 +311,7 @@ public class ConfigChangeAspect {
|
||||
for (ConfigChangePluginService ccs : beforeExecutePluginServices) {
|
||||
final String serviceType = ccs.getServiceType().toLowerCase(Locale.ROOT);
|
||||
final Properties properties = configChangeConfigs.getPluginProperties(serviceType);
|
||||
configChangeRequest.setArg("pluginProperties", properties);
|
||||
configChangeRequest.setArg(ConfigChangeConstants.PLUGIN_PROPERTIES, properties);
|
||||
ccs.execute(configChangeRequest, configChangeResponse);
|
||||
if (null != configChangeResponse.getArgs()) {
|
||||
// update args by filter with whitelist
|
||||
|
@ -40,7 +40,7 @@ public class ConfigChangeRequest {
|
||||
}
|
||||
|
||||
public void setArg(String key, Object value) {
|
||||
requestArgs.putIfAbsent(key, value);
|
||||
requestArgs.put(key, value);
|
||||
}
|
||||
|
||||
public Object getArg(String key) {
|
||||
|
Loading…
Reference in New Issue
Block a user