mirror of https://github.com/apache/cassandra
Fix flaky test CompressionDictionarySchedulerTest.testScheduleSSTableBasedTrainingWithSSTables
Patch by Yifan Cai; Reviewed by Dmitry Konstantinov for CASSANDRA-21054
This commit is contained in:
parent
fd2986b8bc
commit
0212713750
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue