gonwan commented on issue #9085:
URL: https://github.com/apache/dubbo/issues/9085#issuecomment-1608542333

   Find some time to debug the issue. It seems to only affects Windows. The 
root cause is that zookeeper clients invoke `InetAddress#getHostName()` when 
connecting to remote nodes. The method involves host name resolution, which may 
be very slow under Windows. The error stack is actually a timeout error.
   
   And here are the workarounds:
   Option1: Enlarge timeout value:
   ```
   dubbo.registry.timeout=30000
   dubbo.registry.parameters.blockUntilConnectedWait=30
   ```
   Option2: Add addresses of zookeeper nodes to the local `hosts` file.
   


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