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

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

    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-34v2.patch
          4 kB
          Camille Fournier
        2. ZOOKEEPER-1666-34.patch
          5 kB
          Camille Fournier
        3. ZOOKEEPER-1666.patch
          3 kB
          George Cao
        4. ZOOKEEPER-1666.patch
          2 kB
          George Cao

          Issue Links

            Activity

              People

              • Assignee:
                georgecao George Cao
                Reporter:
                georgecao George Cao
              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: