MaxChen1123 commented on issue #13856: URL: https://github.com/apache/dubbo/issues/13856#issuecomment-2690674090
@AlbumenJ For `org.apache.dubbo.registry.zookeeper.ZookeeperRegistry`, if we want Dubbo can start even if the `zkClient` cannot connect to Zookeeper server, we can just make the zkClient's initialization async (in this scenario, zkClient would be null ). So once the `doSubscribe` or `doRegister` is called, it will throw Exception, and the catch block in `org.apache.dubbo.registry.support.FailbackRegistry` will be executed, which will use the local cache in the disk. I've not tested the Nacos implement, but the solution may be the same. But if we want to reconnect the registry continuously, do we need to retry all the failed call when finally connect to registry? Since FallbackRegistry already have the logic that will retry the failed call only once. -- 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]
