You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Igor Soarez (Jira)" <ji...@apache.org> on 2024/04/22 11:33:00 UTC
[jira] [Created] (KAFKA-16596) Flaky test – org.apache.kafka.clients.ClientUtilsTest.testParseAndValidateAddressesWithReverseLookup()
Igor Soarez created KAFKA-16596:
-----------------------------------
Summary: 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
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)