[
https://issues.apache.org/jira/browse/KAFKA-16596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17839624#comment-17839624
]
Viktor Somogyi-Vass commented on KAFKA-16596:
---------------------------------------------
[~soarez] just merged the PR a couple of minutes ago and I didn't notice this
issue, sorry for that. I'll resolve this ticket.
> Flaky test –
> org.apache.kafka.clients.ClientUtilsTest.testParseAndValidateAddressesWithReverseLookup()
>
> -------------------------------------------------------------------------------------------------------
>
> Key: KAFKA-16596
> URL: https://issues.apache.org/jira/browse/KAFKA-16596
> Project: Kafka
> Issue Type: Test
> Reporter: Igor Soarez
> Priority: Major
> Labels: GoodForNewContributors, good-first-issue
>
> org.apache.kafka.clients.ClientUtilsTest.testParseAndValidateAddressesWithReverseLookup()
> failed in the following way:
>
> {code:java}
> org.opentest4j.AssertionFailedError: Unexpected addresses [93.184.215.14,
> 2606:2800:21f:cb07:6820:80da:af6b:8b2c] ==> expected: <true> but was: <false>
> at
> app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
> at
> app//org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
> at app//org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
> at app//org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
> at app//org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:214)
> at
> app//org.apache.kafka.clients.ClientUtilsTest.testParseAndValidateAddressesWithReverseLookup(ClientUtilsTest.java:65)
> {code}
> As a result of the following assertions:
>
> {code:java}
> // With lookup of example.com, either one or two addresses are expected
> depending on
> // whether ipv4 and ipv6 are enabled
> List<InetSocketAddress> validatedAddresses =
> checkWithLookup(asList("example.com:10000"));
> assertTrue(validatedAddresses.size() >= 1, "Unexpected addresses " +
> validatedAddresses);
> List<String> validatedHostNames =
> validatedAddresses.stream().map(InetSocketAddress::getHostName)
> .collect(Collectors.toList());
> List<String> expectedHostNames = asList("93.184.216.34",
> "2606:2800:220:1:248:1893:25c8:1946"); {code}
> It seems that the DNS result has changed for example.com.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)