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/10/14 10:46:12 UTC

[GitHub] [dubbo] haoyann commented on issue #9017: 启动报warn日志,项目启动正常。

haoyann commented on issue #9017:
URL: https://github.com/apache/dubbo/issues/9017#issuecomment-943238375


   这是因为这行代码抛出的异常。
   https://github.com/apache/dubbo/blob/54b2096f2a3b2ccbb55409c4073324b4dc8753c7/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/RegistryProtocol.java#L740-L743
   这是因为你在配置中心添加了一些配置,在服务导出的时候会监听配置中心的数据,然后触发了这段代码,监听触发的时机在往 `bounds` put 数据之前也就是这段代码`final ExporterChangeableWrapper<T> exporter = doLocalExport(originInvoker, providerUrl);`。
   其实这并不影响配置的重载,因为添加配置中心监听的时候,会获取配置中心的内容然后刷新 URL。
   这里是否可以只打印 WARN,不抛出`IllegalStateException`?


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