xiaoheng1 commented on issue #8399:
URL: https://github.com/apache/dubbo/issues/8399#issuecomment-894079274
> **Dubbo client :**
>
> ```
> public static GenericService getDubboService(String address, String
protocol, String service, String version) {
> ReferenceConfig<GenericService> config = getReference(address,
protocol, service, version);
> return ReferenceConfigCache.getCache().get(config);
> }
> ```
>
> **Based on debug result:**
> **ReferenceConfigCache.getCache().get(config )** will call construction
method of **CuratorZookeeperClient** as bellow
> `boolean connected = client.blockUntilConnected(timeout,
TimeUnit.MILLISECONDS); `
> **connected** will always return false and then **Zookeeper is no
connected** Exception will be throw
Tested on my local machine and found that connected = false was not found.
system:
macos
jdk1.8
dubbo2.7.6
zk:3.6.2
--
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]