Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Duplicate
-
3.4.5
-
None
-
None
Description
When connecting to zookeeper, the client does a reverse dns lookup on the hostname. In our environment, the reverse dns lookup takes 5 seconds to fail, causing zookeeper clients to connect slowly.
The reverse dns lookup occurs in ClientCnx in the calls to adr.getHostName()
setName(getName().replaceAll("\\(.*\\)", "(" + addr.getHostName() + ":" + addr.getPort() + ")")); try { zooKeeperSaslClient = new ZooKeeperSaslClient("zookeeper/"+addr.getHostName()); } catch (LoginException e) {
Attachments
Attachments
Issue Links
- duplicates
-
ZOOKEEPER-1666 Avoid Reverse DNS lookup if the hostname in connection string is literal IP address.
- Closed
- is blocked by
-
ZOOKEEPER-1666 Avoid Reverse DNS lookup if the hostname in connection string is literal IP address.
- Closed
- is cloned by
-
ZOOKEEPER-1661 Random (?) 5s delay when establishing connection
- Open