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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.4.5
    • 3.4.6, 3.5.0
    • java client
    • 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
          2 kB
          George Cao
        2. ZOOKEEPER-1666.patch
          3 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

              georgecao George Cao
              georgecao George Cao
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: