Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-1666

Avoid Reverse DNS lookup if the hostname in connection string is literal IP address.

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.5
    • Fix Version/s: 3.4.6, 3.5.0
    • Component/s: java client
    • Labels:
    • Release Note:
      Try to avoid reverse name service look up when the connection string consists of literal IP addresses but not real host names.

      Description

      In our ENV, if the InetSocketAddress.getHostName() is called and the host name in the connection string are literal IP address, then the call will trigger a reverse DNS lookup which is very slow.
      And in this situation, the host name can simply set as the IP without causing any problem.

        Attachments

        1. ZOOKEEPER-1666.patch
          3 kB
          George Cao
        2. ZOOKEEPER-1666.patch
          2 kB
          George Cao
        3. ZOOKEEPER-1666-34.patch
          5 kB
          Camille Fournier
        4. ZOOKEEPER-1666-34v2.patch
          4 kB
          Camille Fournier

        Issue Links

          Activity

            People

            • Assignee:
              georgecao George Cao
              Reporter:
              georgecao George Cao

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment