anmolnar opened a new pull request, #2005:
URL: https://github.com/apache/zookeeper/pull/2005

   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@zookeeper.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to