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:53:00 UTC

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

     [ https://issues.apache.org/jira/browse/KAFKA-10496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justine Olshan updated KAFKA-10496:
-----------------------------------
    Description: 
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. 

At first the tests were changed to just check for multiple addresses. [https://github.com/apache/kafka/pull/9294]

However, 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].

  was:
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. 

At first the tests were changed to just check for multiple addresses. https://github.com/apache/kafka/pull/9294

However, 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].


> 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
>            Priority: Minor
>
> 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. 
> At first the tests were changed to just check for multiple addresses. [https://github.com/apache/kafka/pull/9294]
> However, 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)