nodece opened a new pull request, #4595: URL: https://github.com/apache/bookkeeper/pull/4595
### Motivation #4588 uses `java.net.InetAddress#getCanonicalHostName` to resolve the hostname. However, if the operating system is unable to resolve a hostname for the given IP address, this method may simply return the IP address. This can lead to unexpected behavior when `useHostNameAsBookieID` is enabled — in such cases, we expect a hostname, not an IP. Additionally, the advertised address should not be a loopback address unless explicitly allowed by `allowLoopback`. ### Changes - Validate that the advertised address is not a loopback address when `allowLoopback` is `false`. - Ensure that the resolved hostname is valid and not equal to the raw IP. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
