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

Fix flaky test org.apache.cassandra.index.internal.CassandraIndexTest indexCorrectlyMarkedAsBuildAndRemoved

    XMLWordPrintableJSON

    Details

    • Bug Category:
      Correctness - Test Failure
    • Severity:
      Normal
    • Complexity:
      Normal
    • Discovered By:
      Unit Test
    • Platform:
      All
    • Impacts:
      None
    • Since Version:
    • Test and Documentation Plan:
      Hide

      The fix involves using a before/after size comparison to avoid failing as a result of another test failure.

      Show
      The fix involves using a before/after size comparison to avoid failing as a result of another test failure.

      Description

      junit.framework.AssertionFailedError: Got more rows than expected. Expected 1 but got 4.
      	at org.apache.cassandra.cql3.CQLTester.assertRows(CQLTester.java:1098)
      	at org.apache.cassandra.index.internal.CassandraIndexTest.indexCorrectlyMarkedAsBuildAndRemoved(CassandraIndexTest.java:499)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      

      The failure was seen on java 11.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jorgebg Jorge Bay
                Reporter:
                dcapwell David Capwell
                Authors:
                Jorge Bay
                Reviewers:
                Sam Tunnicliffe
              • 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 - 0.5h
                  0.5h