Skip to content

Commit bd7be17

Browse files
k-rusmichaelsembwever
authored andcommitted
CNDB-15580: CNDB-15519 test BM25 after compaction too (#2026)
Compaction might write SAI differently than flush, thus it's good to have tests running after compaction. Changes to use runThenFlushThenCompact instead of beforeAndAfterFlush in BM25 test. Another test already tests after compaction in addition to memtable and after flush.
1 parent 43dbe78 commit bd7be17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/org/apache/cassandra/index/sai/cql/BM25Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ public void testCollections() throws Throwable
793793
analyzeDataset("climate");
794794
analyzeDataset("health");
795795

796-
beforeAndAfterFlush(
796+
runThenFlushThenCompact(
797797
() -> {
798798
executeQuery(CLIMATE_QUERY_RESULTS, "SELECT * FROM %s ORDER BY body BM25 OF ? LIMIT 10",
799799
"climate");

0 commit comments

Comments
 (0)