Skip to content

Commit

Permalink
[LI-HOTFIX] Ignore the failed test ClusterConnectionStatesTest#testMu…
Browse files Browse the repository at this point in the history
…ltipleIPsWithUseAll (#116)

TICKET = N/A
LI_DESCRIPTION = The test fails since the domain kafka.apache.org used to return 3 IPs and is now
only returning two IPs. Furthermore, the upstream fix identified below cannot be cleanly cherry
picked.
EXIT_CRITERIA = when the commit 131d475 is picked from upstream:
KAFKA-12193: Re-resolve IPs after a client disconnects apache#9902
  • Loading branch information
gitlw committed Feb 6, 2021
1 parent dc223f4 commit bc2a4cb
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -33,6 +33,7 @@
import org.apache.kafka.common.utils.LogContext;
import org.apache.kafka.common.utils.MockTime;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;

public class ClusterConnectionStatesTest {
Expand Down Expand Up @@ -264,6 +265,7 @@ public void testMultipleIPsWithDefault() throws UnknownHostException {
assertSame(currAddress, connectionStates.currentAddress(nodeId1));
}

@Ignore
@Test
public void testMultipleIPsWithUseAll() throws UnknownHostException {
assertTrue(ClientUtils.resolve(hostTwoIps, ClientDnsLookup.USE_ALL_DNS_IPS).size() > 1);
Expand Down

0 comments on commit bc2a4cb

Please sign in to comment.