You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by di...@apache.org on 2025/01/15 15:48:09 UTC
(kafka) branch 4.0 updated: HOTFIX: ClientUtilsTest#testParseAndValidateAddressesWithReverseLookup (#18549)
This is an automated email from the ASF dual-hosted git repository.
divijv pushed a commit to branch 4.0
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/4.0 by this push:
new fd3f2382a71 HOTFIX: ClientUtilsTest#testParseAndValidateAddressesWithReverseLookup (#18549)
fd3f2382a71 is described below
commit fd3f2382a7191b1aab8b5aba887d495372f5dd52
Author: PoAn Yang <pa...@apache.org>
AuthorDate: Wed Jan 15 23:09:03 2025 +0800
HOTFIX: ClientUtilsTest#testParseAndValidateAddressesWithReverseLookup (#18549)
Reviewers: Ismael Juma <is...@juma.me.uk>, Gaurav Narula <ga...@apple.com>, TengYao Chi <ki...@gmail.com>
---
.../java/org/apache/kafka/clients/ClientUtilsTest.java | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/clients/src/test/java/org/apache/kafka/clients/ClientUtilsTest.java b/clients/src/test/java/org/apache/kafka/clients/ClientUtilsTest.java
index 071bf7635fd..08e2a429085 100644
--- a/clients/src/test/java/org/apache/kafka/clients/ClientUtilsTest.java
+++ b/clients/src/test/java/org/apache/kafka/clients/ClientUtilsTest.java
@@ -63,7 +63,20 @@ public class ClientUtilsTest {
assertFalse(validatedAddresses.isEmpty(), "Unexpected addresses " + validatedAddresses);
List<String> validatedHostNames = validatedAddresses.stream().map(InetSocketAddress::getHostName)
.collect(Collectors.toList());
- List<String> expectedHostNames = asList("93.184.215.14", "2606:2800:21f:cb07:6820:80da:af6b:8b2c");
+ List<String> expectedHostNames = List.of(
+ "a23-215-0-136.deploy.static.akamaitechnologies.com",
+ "a23-192-228-84.deploy.static.akamaitechnologies.com",
+ "a23-215-0-138.deploy.static.akamaitechnologies.com",
+ "a96-7-128-175.deploy.static.akamaitechnologies.com",
+ "a23-192-228-80.deploy.static.akamaitechnologies.com",
+ "a96-7-128-198.deploy.static.akamaitechnologies.com",
+ "2600:1406:3a00:21:0:0:173e:2e66",
+ "2600:1408:ec00:36:0:0:1736:7f31",
+ "2600:1406:3a00:21:0:0:173e:2e65",
+ "2600:1408:ec00:36:0:0:1736:7f24",
+ "2600:1406:bc00:53:0:0:b81e:94ce",
+ "2600:1406:bc00:53:0:0:b81e:94c8"
+ );
assertTrue(expectedHostNames.containsAll(validatedHostNames), "Unexpected addresses " + validatedHostNames);
validatedAddresses.forEach(address -> assertEquals(10000, address.getPort()));
}