You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Matthias J. Sax (Jira)" <ji...@apache.org> on 2021/02/26 23:29:00 UTC

[jira] [Commented] (KAFKA-9714) Flaky Test SslTransportLayerTest#testTLSDefaults

    [ https://issues.apache.org/jira/browse/KAFKA-9714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17291965#comment-17291965 ] 

Matthias J. Sax commented on KAFKA-9714:
----------------------------------------

Different test method:
{quote}org.opentest4j.AssertionFailedError: Condition not met within timeout 15000. Metric not updated failed-authentication-total expected:<1.0> but was:<170.0> ==> expected: <true> but was: <false> at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:40) at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:193) at org.apache.kafka.test.TestUtils.lambda$waitForCondition$3(TestUtils.java:303) at org.apache.kafka.test.TestUtils.retryOnExceptionWithTimeout(TestUtils.java:351) at org.apache.kafka.test.TestUtils.retryOnExceptionWithTimeout(TestUtils.java:319) at org.apache.kafka.test.TestUtils.waitForCondition(TestUtils.java:300) at org.apache.kafka.common.network.NioEchoServer.waitForMetrics(NioEchoServer.java:196) at org.apache.kafka.common.network.NioEchoServer.verifyAuthenticationMetrics(NioEchoServer.java:155) at org.apache.kafka.common.network.SslTransportLayerTest.verifySslConfigsWithHandshakeFailure(SslTransportLayerTest.java:1327) at org.apache.kafka.common.network.SslTransportLayerTest.testInvalidEndpointIdentification(SslTransportLayerTest.java:284){quote}
STDOUT:
{quote}[2021-02-26 22:15:14,750] ERROR Modification time of key store could not be obtained: some.truststore.path (org.apache.kafka.common.security.ssl.DefaultSslEngineFactory:385) java.nio.file.NoSuchFileException: some.truststore.path{quote}

> Flaky Test SslTransportLayerTest#testTLSDefaults
> ------------------------------------------------
>
>                 Key: KAFKA-9714
>                 URL: https://issues.apache.org/jira/browse/KAFKA-9714
>             Project: Kafka
>          Issue Type: Bug
>          Components: core, security, unit tests
>            Reporter: Matthias J. Sax
>            Priority: Critical
>              Labels: flaky-test
>
> [https://builds.apache.org/job/kafka-pr-jdk11-scala2.13/5145/testReport/junit/org.apache.kafka.common.network/SslTransportLayerTest/testTLSDefaults_tlsProtocol_TLSv1_2_/]
> {quote}java.lang.AssertionError: Metric not updated failed-authentication-total expected:<0.0> but was:<1.0> expected:<0.0> but was:<1.0> at org.junit.Assert.fail(Assert.java:89) at org.junit.Assert.failNotEquals(Assert.java:835) at org.junit.Assert.assertEquals(Assert.java:555) at org.apache.kafka.common.network.NioEchoServer.waitForMetrics(NioEchoServer.java:194) at org.apache.kafka.common.network.NioEchoServer.verifyAuthenticationMetrics(NioEchoServer.java:156) at org.apache.kafka.common.network.SslTransportLayerTest.testTLSDefaults(SslTransportLayerTest.java:571){quote}
> STDOUT
> {quote}[2020-03-12 17:03:44,617] ERROR Modification time of key store could not be obtained: some.truststore.path (org.apache.kafka.common.security.ssl.SslEngineBuilder:300) java.nio.file.NoSuchFileException: some.truststore.path at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55) at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:149) at java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99) at java.base/java.nio.file.Files.readAttributes(Files.java:1763) at java.base/java.nio.file.Files.getLastModifiedTime(Files.java:2314) at org.apache.kafka.common.security.ssl.SslEngineBuilder$SecurityStore.lastModifiedMs(SslEngineBuilder.java:298) at org.apache.kafka.common.security.ssl.SslEngineBuilder$SecurityStore.<init>(SslEngineBuilder.java:275) at org.apache.kafka.common.security.ssl.SslEngineBuilder.createTruststore(SslEngineBuilder.java:182) at org.apache.kafka.common.security.ssl.SslEngineBuilder.<init>(SslEngineBuilder.java:100) at org.apache.kafka.common.security.ssl.SslFactory.createNewSslEngineBuilder(SslFactory.java:140) at org.apache.kafka.common.security.ssl.SslFactory.validateReconfiguration(SslFactory.java:114) at org.apache.kafka.common.network.SslChannelBuilder.validateReconfiguration(SslChannelBuilder.java:85) at org.apache.kafka.common.network.SslTransportLayerTest.verifyInvalidReconfigure(SslTransportLayerTest.java:1123) at org.apache.kafka.common.network.SslTransportLayerTest.testServerTruststoreDynamicUpdate(SslTransportLayerTest.java:1113){quote}



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