/[Apache-SVN]
ViewVC logotype

Revision 776714


Jump to revision: Previous Next
Author: jbellis
Date: Wed May 20 14:40:27 2009 UTC (14 years, 11 months ago)
Changed paths: 4
Log Message:
OneCompactionTest is failing occasionally because 500 keys per CFS is actually triggering an automatic compaction (since test flush threshold is only 20) and we were doing a non-threadsafe doCompaction for convenience: the failure occurs when our manual compaction begins mid-run of an automatic one, and the automatic deletes the original sstable file first.  Fix by (a) dropping the number of keys so that OneCompactionTest lives up to its name (more are tested in "CompactionsTest") and (b) making the compactions call threadsafe by refactoring to allow a threshold parameter to MCM.submit.
patch by jbellis; reviewed by Jun Rao for CASSANDRA-184

Changed paths

Path Details
Directoryincubator/cassandra/branches/cassandra-0.3/src/java/org/apache/cassandra/db/ColumnFamilyStore.java modified , text changed
Directoryincubator/cassandra/branches/cassandra-0.3/src/java/org/apache/cassandra/db/MinorCompactionManager.java modified , text changed
Directoryincubator/cassandra/branches/cassandra-0.3/src/java/org/apache/cassandra/io/SSTable.java modified , text changed
Directoryincubator/cassandra/branches/cassandra-0.3/test/unit/org/apache/cassandra/db/OneCompactionTest.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26