MaxChen1123 commented on issue #13856:
URL: https://github.com/apache/dubbo/issues/13856#issuecomment-2689883053

   @AlbumenJ I found the `org.apache.dubbo.registry.support.FailbackRegistry` 
already have the function to use local cache when the `doSubscribe` method 
throws Exception. So, for the 
`org.apache.dubbo.registry.zookeeper.ZookeeperRegistry`, if user want to start 
Dubbo when Zookeeper crashes,  we can just make the zkClient initialization 
async. Then `checkDestroyed()` in every `doSubscribe` call will throw Exception 
because `zkClient` is null, and then the local cache can be used. I've not 
tested the Nacos implement yet, but the solution may be the same.


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