You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "gonwan (via GitHub)" <gi...@apache.org> on 2023/06/27 00:55:32 UTC

[GitHub] [dubbo] gonwan commented on issue #9085: 从3.0.2.1升级到3.0.3 Can not create registry

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