Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-10471

Failure / flake in CassandraIOTest > testEstimatedSizeBytes

Details

    • Bug
    • Status: Resolved
    • P1
    • Resolution: Fixed
    • None
    • Missing
    • io-java-cassandra

    Description

      https://ci-beam.apache.org/job/beam_PreCommit_Java_Commit/12328/testReport/junit/org.apache.beam.sdk.io.cassandra/CassandraIOTest/testEstimatedSizeBytes/

      AssertionError with no error message. Please give a meaningful error message. Preferably do not use assertTrue and other less meaningful asserters.

      Digging into the code, it is a bounds check that the estimated bytes are +/- 10% of expected, since the result is nondeterministic. It fell outside of the range but since the assertion is written as assertTrue we do not see the actual value.

      https://github.com/apache/beam/blob/66bcc9a967746cad12dfdeed473fb60c77033514/sdks/java/io/cassandra/src/test/java/org/apache/beam/sdk/io/cassandra/CassandraIOTest.java#L291

      Attachments

        Activity

          People

            echauchot Etienne Chauchot
            kenn Kenneth Knowles
            Votes:
            0 Vote for this issue
            Watchers:
            3 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 - 1h 50m
                1h 50m