[ https://issues.apache.org/jira/browse/KAFKA-7310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16596387#comment-16596387 ]
ASF GitHub Bot commented on KAFKA-7310: --------------------------------------- rajinisivaram closed pull request #5570: KAFKA-7310: Fix testUnsupportedCiphers to work with Java 11 URL: https://github.com/apache/kafka/pull/5570 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/clients/src/test/java/org/apache/kafka/common/network/SslTransportLayerTest.java b/clients/src/test/java/org/apache/kafka/common/network/SslTransportLayerTest.java index d70a448df22..919c1675d18 100644 --- a/clients/src/test/java/org/apache/kafka/common/network/SslTransportLayerTest.java +++ b/clients/src/test/java/org/apache/kafka/common/network/SslTransportLayerTest.java @@ -543,7 +543,9 @@ public void testUnsupportedTLSVersion() throws Exception { @Test public void testUnsupportedCiphers() throws Exception { String node = "0"; - String[] cipherSuites = SSLContext.getDefault().getDefaultSSLParameters().getCipherSuites(); + SSLContext context = SSLContext.getInstance("TLSv1.2"); + context.init(null, null, null); + String[] cipherSuites = context.getDefaultSSLParameters().getCipherSuites(); sslServerConfigs.put(SslConfigs.SSL_CIPHER_SUITES_CONFIG, Arrays.asList(cipherSuites[0])); server = createEchoServer(SecurityProtocol.SSL); ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Fix SSL tests when running with Java 11 > --------------------------------------- > > Key: KAFKA-7310 > URL: https://issues.apache.org/jira/browse/KAFKA-7310 > Project: Kafka > Issue Type: Sub-task > Components: packaging, unit tests > Reporter: Ismael Juma > Assignee: Ismael Juma > Priority: Critical > Fix For: 2.1.0 > > > * Many SSL tests in clients fail. Probably related to the TLS 1.3 changes in > Java 11. -- This message was sent by Atlassian JIRA (v7.6.3#76005)