Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-16596

Flaky test – org.apache.kafka.clients.ClientUtilsTest.testParseAndValidateAddressesWithReverseLookup()

    XMLWordPrintableJSON

Details

    Description

      org.apache.kafka.clients.ClientUtilsTest.testParseAndValidateAddressesWithReverseLookup() failed in the following way:

       

      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) 

      As a result of the following assertions:

       

      // 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"); 

      It seems that the DNS result has changed for example.com.

       

      Attachments

        Activity

          People

            akatona Andras Katona
            soarez Igor Soarez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: