| commit | 3702a45459b4946d3c45d29c6f201077b66bf2ea | [log] [tgz] |
|---|---|---|
| author | Andor Molnar <andor@apache.org> | Wed Jun 14 14:58:35 2023 +0200 |
| committer | Andor Molnar <andor@cloudera.com> | Wed Jun 14 14:58:35 2023 +0200 |
| tree | 3b5d381ddd2db524fd65e641e58faa01ac314575 | |
| parent | b8d458f5c46cb3064d4a56f471d441011a558991 [diff] |
ZOOKEEPER-3860: Avoid reverse DNS lookup for hostname verification when hostnames are provided in the connection url Instead of altering the behaviour of `ZKTrustManager`, I'll add the following improvements: 1. `NetUtils.formatInetAddr()` should prefer using the hostname of resolved addresses when converting InetSocketAddress to String. Previously it only picked the hostname if address was missing, e.g. the hostname was unresolved. This change has the advantage of sending the hostname in the InitialMessage instead of the IP address, which will help avoiding unnecessary reverse DNS lookups in the election protocol when TLS is enabled. 2. Add extra debug logs to `ZKTrustManager` and remove logging the exception stack trace when IP verification failed. Logging of stack traces makes sense to me in error log entries only. Many times we hit into this when user turns on debug logging, seeing a big stack trace and believes it's an error in ZooKeeper. Target branches: master, branch-3.8 Author: Andor Molnar <andor@cloudera.com> Reviewers: eolivelli@apache.org Closes #2005 from anmolnar/ZOOKEEPER-3860
For the latest information about Apache ZooKeeper, please visit our website at:
and our wiki, at:
https://cwiki.apache.org/confluence/display/ZOOKEEPER
Either downloaded from https://zookeeper.apache.org/releases.html or found in zookeeper-assembly/target directory after building the project with maven.
apache-zookeeper-[version].tar.gz
Contains all the source files which can be built by running:
mvn clean install
To generate an aggregated apidocs for zookeeper-server and zookeeper-jute:
mvn javadoc:aggregate
(generated files will be at target/site/apidocs)
apache-zookeeper-[version]-bin.tar.gz
Contains all the jar files required to run ZooKeeper
Full documentation can also be found in the docs folder
As of version 3.5.5, the parent, zookeeper and zookeeper-jute artifacts are deployed to the central repository after the release is voted on and approved by the Apache ZooKeeper PMC:
https://repo1.maven.org/maven2/org/apache/zookeeper/zookeeper
If you are going to compile with Java 1.8, you should use a recent release at u211 or above.
We always welcome new contributors to the project! See How to Contribute for details on how to submit patches as pull requests and other aspects of our contribution workflow.