You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Justine Olshan (Jira)" <ji...@apache.org> on 2020/09/17 15:50:00 UTC

[jira] [Created] (KAFKA-10496) Create an in-memory DNS server for ClientUtilsTest and ClusterConnectionStatesTest

Justine Olshan created KAFKA-10496:
--------------------------------------

             Summary: Create an in-memory DNS server for ClientUtilsTest and ClusterConnectionStatesTest
                 Key: KAFKA-10496
                 URL: https://issues.apache.org/jira/browse/KAFKA-10496
             Project: Kafka
          Issue Type: Improvement
            Reporter: Justine Olshan


ClientUtilsTest and ClusterConnectionStatesTest currently use an external DNS to resolve the IP addresses for kafka.apache.org. Until recently there were only two IP4 addresses, but now there is a third. 

These tests are pretty fragile when they rely on outside sources, so it would make sense to create an in-memory DNS.  This is what netty does for similar tests.  [https://github.com/netty/netty/blob/master/resolver-dns/src/test/java/io/netty/resolver/dns/TestDnsServer.java].



--
This message was sent by Atlassian Jira
(v8.3.4#803005)