Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-19198

[Analytics] Flaky test: SSTableInputStreamTests#testTimeoutShouldAccountForActivityTime

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • NA
    • Analytics Library
    • None

    Description

      The test case uses relative time value for assertion. It is flaky since test execution could be delayed depending on the test environment.

      Error Message

      org.opentest4j.AssertionFailedError: Timeout didn't account for activity time. Took 1219ms should have taken at most 1100ms ==> expected: <true> but was: <false> 

      Stacktrace

      org.opentest4j.AssertionFailedError: Timeout didn't account for activity time. Took 1219ms should have taken at most 1100ms ==> expected: <true> but was: <false>
      at app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
      at app//org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
      at app//org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
      at app//org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
      at app//org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:211)
      at app//org.apache.cassandra.spark.utils.SSTableInputStreamTests.testTimeoutShouldAccountForActivityTime(SSTableInputStreamTests.java:234)
      ... 

      Attachments

        Issue Links

          Activity

            People

              yifanc Yifan Cai
              yifanc Yifan Cai
              Yifan Cai
              Francisco Guerrero
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m