Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-16225

Flaky test suite LogDirFailureTest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • core, unit tests

    Description

      I see this failure on trunk and in PR builds for multiple methods in this test suite:

      org.opentest4j.AssertionFailedError: expected: <true> but was: <false>    
      at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)    
      at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)    
      at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)    
      at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)    
      at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31)    
      at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:179)    
      at kafka.utils.TestUtils$.causeLogDirFailure(TestUtils.scala:1715)    
      at kafka.server.LogDirFailureTest.testProduceAfterLogDirFailureOnLeader(LogDirFailureTest.scala:186)    
      at kafka.server.LogDirFailureTest.testIOExceptionDuringLogRoll(LogDirFailureTest.scala:70)

      It appears this assertion is failing
      https://github.com/apache/kafka/blob/f54975c33135140351c50370282e86c49c81bbdd/core/src/test/scala/unit/kafka/utils/TestUtils.scala#L1715

      The other error which is appearing is this:

      org.opentest4j.AssertionFailedError: Unexpected exception type thrown, expected: <java.util.concurrent.ExecutionException> but was: <java.lang.IllegalStateException>    
      at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)    
      at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:67)    
      at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:35)    
      at org.junit.jupiter.api.Assertions.assertThrows(Assertions.java:3111)    
      at kafka.server.LogDirFailureTest.testProduceErrorsFromLogDirFailureOnLeader(LogDirFailureTest.scala:164)    
      at kafka.server.LogDirFailureTest.testProduceErrorFromFailureOnLogRoll(LogDirFailureTest.scala:64)

      Failures appear to have started in this commit, but this does not indicate that this commit is at fault: https://github.com/apache/kafka/tree/3d95a69a28c2d16e96618cfa9a1eb69180fb66ea 

      Attachments

        Activity

          People

            omnia_h_ibrahim Omnia Ibrahim
            gharris1727 Greg Harris
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: