Skip to content

Commit 0212713

Browse files
committed
Fix flaky test CompressionDictionarySchedulerTest.testScheduleSSTableBasedTrainingWithSSTables
Patch by Yifan Cai; Reviewed by Dmitry Konstantinov for CASSANDRA-21054
1 parent fd2986b commit 0212713

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/unit/org/apache/cassandra/db/compression/CompressionDictionarySchedulerTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ public class CompressionDictionarySchedulerTest extends CQLTester
4343
public void setUp()
4444
{
4545
cache = new CompressionDictionaryCache();
46-
// Disable compaction to make the sstable sampling deterministic; to avoid excluding sstables get compacted away.
47-
disableCompaction(KEYSPACE);
4846
}
4947

5048
@After
@@ -83,6 +81,7 @@ public void testScheduleSSTableBasedTrainingWithSSTables()
8381
scheduler = new CompressionDictionaryScheduler(KEYSPACE, table, cache, true);
8482

8583
ColumnFamilyStore cfs = Keyspace.open(keyspace()).getColumnFamilyStore(table);
84+
cfs.disableAutoCompaction();
8685
CompressionDictionaryManager manager = cfs.compressionDictionaryManager();
8786

8887
createSSTables();

0 commit comments

Comments
 (0)