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

4 Unit Tests are breaking after addition of a new A record to "apache.org"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Component/s: unit tests
    • Labels:
      None

      Description

      apache.org earlier used to resolve only to 2 A records: 95.216.24.32 and 40.79.78.1

       

      With addition of a new A record 95.216.26.30, 4 unit tests have started failing, which expect the count of DNS resolution to be 2, but instead it is now 3.

       

      org.apache.kafka.clients.ClusterConnectionStatesTest > testMultipleIPsWithUseAll FAILED
          java.lang.AssertionError: expected:<2> but was:<3>
              at org.junit.Assert.fail(Assert.java:88)
              at org.junit.Assert.failNotEquals(Assert.java:834)
              at org.junit.Assert.assertEquals(Assert.java:645)
              at org.junit.Assert.assertEquals(Assert.java:631)
              at org.apache.kafka.clients.ClusterConnectionStatesTest.testMultipleIPsWithUseAll(ClusterConnectionStatesTest.java:241)
      
      
      org.apache.kafka.clients.ClusterConnectionStatesTest > testHostResolveChange FAILED
          java.lang.AssertionError: expected:<2> but was:<3>
              at org.junit.Assert.fail(Assert.java:88)
              at org.junit.Assert.failNotEquals(Assert.java:834)
              at org.junit.Assert.assertEquals(Assert.java:645)
              at org.junit.Assert.assertEquals(Assert.java:631)
              at org.apache.kafka.clients.ClusterConnectionStatesTest.testHostResolveChange(ClusterConnectionStatesTest.java:256)
      
      org.apache.kafka.clients.ClusterConnectionStatesTest > testMultipleIPsWithDefault FAILED
          java.lang.AssertionError: expected:<2> but was:<3>
              at org.junit.Assert.fail(Assert.java:88)
              at org.junit.Assert.failNotEquals(Assert.java:834)
              at org.junit.Assert.assertEquals(Assert.java:645)
              at org.junit.Assert.assertEquals(Assert.java:631)
              at org.apache.kafka.clients.ClusterConnectionStatesTest.testMultipleIPsWithDefault(ClusterConnectionStatesTest.java:231)
      
      org.apache.kafka.clients.ClientUtilsTest > testResolveDnsLookupAllIps FAILED
          java.lang.AssertionError: expected:<2> but was:<3>
              at org.junit.Assert.fail(Assert.java:88)
              at org.junit.Assert.failNotEquals(Assert.java:834)
              at org.junit.Assert.assertEquals(Assert.java:645)
              at org.junit.Assert.assertEquals(Assert.java:631)
              at org.apache.kafka.clients.ClientUtilsTest.testResolveDnsLookupAllIps(ClientUtilsTest.java:87)
       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              prat0318 Prateek Agarwal
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: