You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/11/09 10:00:01 UTC

[GitHub] [dubbo] zrlw removed a comment on issue #9239: 新增动态配置无效

zrlw removed a comment on issue #9239:
URL: https://github.com/apache/dubbo/issues/9239#issuecomment-963990074


   zk的create事件通知内容只是个ip地址,如果对应ConfigChangeType.MODIFIED,那么genConfiguratorsFromRawRule解析内容时就会异常。
   看NacosDynamicConfiguration、NacosMetadataReport代码,貌似nacos没有zk这样单独的create事件通知,可否把这两个类里的getChangeType改一下:
   ```
           private ConfigChangeType getChangeType(String configInfo, String oldValue) {
               if (StringUtils.isBlank(configInfo)) {
                   return ConfigChangeType.DELETED;
               }
               /* nacos没有单独的create事件通知
               if (StringUtils.isBlank(oldValue)) {
                   return ConfigChangeType.ADDED;
               }
               */
               return ConfigChangeType.MODIFIED;
           }
   ```


-- 
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: notifications-unsubscribe@dubbo.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org