ivanyu commented on code in PR #13277: URL: https://github.com/apache/kafka/pull/13277#discussion_r1620514653
########## clients/src/main/java/org/apache/kafka/clients/Metadata.java: ########## @@ -304,6 +306,12 @@ public synchronized void bootstrap(List<InetSocketAddress> addresses) { this.needFullUpdate = true; this.updateVersion += 1; this.metadataSnapshot = MetadataSnapshot.bootstrap(addresses); + this.bootstrapAddresses = addresses; Review Comment: This really depends on the `client.dns.lookup`. E.g. if you use the bootstrap address `kafka.myorg.com:12345`, the bootstrap node will get `kafka.myorg.com` as the host, despite the name resolution happens before that. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org