Fix flaky test CompressionDictionarySchedulerTest.testScheduleSSTableBasedTrainingWithSSTables

Patch by Yifan Cai; Reviewed by Dmitry Konstantinov for CASSANDRA-21054
This commit is contained in:
Yifan Cai 2025-12-02 13:29:44 -08:00
parent fd2986b8bc
commit 0212713750
1 changed files with 1 additions and 2 deletions

View File

@ -43,8 +43,6 @@ public class CompressionDictionarySchedulerTest extends CQLTester
public void setUp()
{
cache = new CompressionDictionaryCache();
// Disable compaction to make the sstable sampling deterministic; to avoid excluding sstables get compacted away.
disableCompaction(KEYSPACE);
}
@After
@ -83,6 +81,7 @@ public class CompressionDictionarySchedulerTest extends CQLTester
scheduler = new CompressionDictionaryScheduler(KEYSPACE, table, cache, true);
ColumnFamilyStore cfs = Keyspace.open(keyspace()).getColumnFamilyStore(table);
cfs.disableAutoCompaction();
CompressionDictionaryManager manager = cfs.compressionDictionaryManager();
createSSTables();