Bug: Test failure: SSTablesSystemViewTest#testVirtualTableThroughIndexLifeCycle
Status: Resolved
Priority: Normal
Resolution: Fixed
Created: 28/Jul/23 09:48
Resolved: 02/Aug/23 17:52

The utest {{org.apache.cassandra.index.sai.virtual.SSTablesSystemViewTest#testVirtualTableThroughIndexLifeCycle}} is consistently broken with tries at least on trunk:

* https://app.circleci.com/pipelines/github/adelapena/cassandra/3068/workflows/17760f03-9807-41cc-9cb3-a1fdf3e60f77/jobs/64069/tests
* https://app.circleci.com/pipelines/github/michaelsembwever/cassandra/215/workflows/efcd6699-c1d2-48c0-99de-b35544106264/jobs/15684/tests
* https://app.circleci.com/pipelines/github/michaelsembwever/cassandra/215/workflows/efcd6699-c1d2-48c0-99de-b35544106264/jobs/15692/tests

{code}
junit.framework.AssertionFailedError: Got 4 extra row(s) and 2 missing row(s) in result.  Extra rows:
    row(index_name=table_00_v1_idx, sstable_name=/tmp/cassandra/build/test/cassandra/data/cql_test_keyspace/table_00-12e640202d2a11eea926d15115276651/da-5-bti-Data.db, table_name=table_00, column_name=v1, format_version=aa, cell_count=1, min_row_id=0, max_row_id=0, start_token=8213365047359667313, end_token=8213365047359667313, per_table_disk_size=335, per_column_disk_size=270)
    row(index_name=table_00_v2_idx, sstable_name=/tmp/cassandra/build/test/cassandra/data/cql_test_keyspace/table_00-12e640202d2a11eea926d15115276651/da-5-bti-Data.db, table_name=table_00, column_name=v2, format_version=aa, cell_count=1, min_row_id=0, max_row_id=0, start_token=8213365047359667313, end_token=8213365047359667313, per_table_disk_size=335, per_column_disk_size=274)
    row(index_name=table_00_v2_idx, sstable_name=/tmp/cassandra/build/test/cassandra/data/cql_test_keyspace/table_00-12e640202d2a11eea926d15115276651/da-6-bti-Data.db, table_name=table_00, column_name=v2, format_version=aa, cell_count=4, min_row_id=0, max_row_id=4, start_token=-8982230457741691068, end_token=5293579765126103566, per_table_disk_size=610, per_column_disk_size=339)
    row(index_name=table_00_v1_idx, sstable_name=/tmp/cassandra/build/test/cassandra/data/cql_test_keyspace/table_00-12e640202d2a11eea926d15115276651/da-6-bti-Data.db, table_name=table_00, column_name=v1, format_version=aa, cell_count=3, min_row_id=2, max_row_id=4, start_token=-8982230457741691068, end_token=5293579765126103566, per_table_disk_size=610, per_column_disk_size=310)
Missing Rows:
    row(index_name=table_00_v1_idx, sstable_name=/tmp/cassandra/build/test/cassandra/data/cql_test_keyspace/table_00-12e640202d2a11eea926d15115276651/da-5-bti-Data.db, table_name=table_00, column_name=v1, format_version=aa, cell_count=4, min_row_id=2, max_row_id=5, start_token=8213365047359667313, end_token=8213365047359667313, per_table_disk_size=335, per_column_disk_size=270)
    row(index_name=table_00_v2_idx, sstable_name=/tmp/cassandra/build/test/cassandra/data/cql_test_keyspace/table_00-12e640202d2a11eea926d15115276651/da-5-bti-Data.db, table_name=table_00, column_name=v2, format_version=aa, cell_count=5, min_row_id=0, max_row_id=5, start_token=8213365047359667313, end_token=8213365047359667313, per_table_disk_size=335, per_column_disk_size=274)
	at org.apache.cassandra.cql3.CQLTester.assertRowsIgnoringOrderInternal(CQLTester.java:1900)
	at org.apache.cassandra.cql3.CQLTester.assertRowsIgnoringOrder(CQLTester.java:1834)
	at org.apache.cassandra.index.sai.virtual.SSTablesSystemViewTest.testVirtualTableThroughIndexLifeCycle(SSTablesSystemViewTest.java:133)
	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)
	at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
{code}
The failure seems exclusive to {{test-trie}}.