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

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

    XMLWordPrintableJSON

Details

    • Correctness - Test Failure
    • Normal
    • Normal
    • Unit Test
    • All
    • None
    • 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

              jorgebg Jorge Bay
              dcapwell David Capwell
              Jorge Bay
              Sam Tunnicliffe
              Votes:
              0 Vote for this issue
              Watchers:
              4 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