eolivelli commented on a change in pull request #373: Issue #372: Allow to 
configure advertised address in bookies
URL: https://github.com/apache/bookkeeper/pull/373#discussion_r131236461
 
 

 ##########
 File path: 
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/Bookie.java
 ##########
 @@ -586,6 +586,10 @@ public static BookieSocketAddress 
getBookieAddress(ServerConfiguration conf)
         if (conf.getUseHostNameAsBookieID()) {
             hostAddress = inetAddr.getAddress().getCanonicalHostName();
         }
+
+        if (conf.getAdvertisedAddress() != null && 
conf.getAdvertisedAddress().trim().length() > 0) {
 
 Review comment:
   Maybe you can rearrage the code in order to skip completely the previous 
code, like dns queries...
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to