This is an automated email from the ASF dual-hosted git repository.
ycai pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra.git
The following commit(s) were added to refs/heads/trunk by this push:
new 0212713750 Fix flaky test
CompressionDictionarySchedulerTest.testScheduleSSTableBasedTrainingWithSSTables
0212713750 is described below
commit 0212713750f35c0f1849d38bcc7e3c270ab62c7e
Author: Yifan Cai <[email protected]>
AuthorDate: Tue Dec 2 13:29:44 2025 -0800
Fix flaky test
CompressionDictionarySchedulerTest.testScheduleSSTableBasedTrainingWithSSTables
Patch by Yifan Cai; Reviewed by Dmitry Konstantinov for CASSANDRA-21054
---
.../cassandra/db/compression/CompressionDictionarySchedulerTest.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/test/unit/org/apache/cassandra/db/compression/CompressionDictionarySchedulerTest.java
b/test/unit/org/apache/cassandra/db/compression/CompressionDictionarySchedulerTest.java
index fe9188153d..98a0110e6f 100644
---
a/test/unit/org/apache/cassandra/db/compression/CompressionDictionarySchedulerTest.java
+++
b/test/unit/org/apache/cassandra/db/compression/CompressionDictionarySchedulerTest.java
@@ -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();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]