haoyann opened a new issue #9239:
URL: https://github.com/apache/dubbo/issues/9239


   <!-- If you need to report a security issue please visit 
https://github.com/apache/dubbo/security/policy -->
   
   - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) 
of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.0 branch
   * Operating System version: all
   * Java version: all
   
   ### Steps to reproduce this issue
   #8833 改动忽略了新增配置的类型,导致使用 zkClient.create() 和 nacos 新增配置无效。
   ```
           if (event.getChangeType().equals(ConfigChangeType.ADDED)) {
               return;
           }
   ```
   Nacos 获取配置类型
   ```
           private ConfigChangeType getChangeType(String configInfo, String 
oldValue) {
               if (StringUtils.isBlank(configInfo)) {
                   return ConfigChangeType.DELETED;
               }
               if (StringUtils.isBlank(oldValue)) {
                   return ConfigChangeType.ADDED;
               }
               return ConfigChangeType.MODIFIED;
           }
   ```
   
   ### Expected Behavior
   
   <!-- What do you expect from the above steps?-->
   
   ### Actual Behavior
   
   <!-- What actually happens? -->
   
   If there is an exception, please attach the exception trace:
   
   ```
   Just put your stack trace here!
   ```
   


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

Reply via email to