Author: jbellis
Date: Fri Aug 28 03:05:49 2009
New Revision: 808742

URL: http://svn.apache.org/viewvc?rev=808742&view=rev
Log:
call doAntiCompaction in the tests the same way we do in the actual code -- by 
submitting it to the MinorCompactionManager so it serializes with other 
compaction tasks.  patch by Sandeep Tata; reviewed by jbellis for CASSANDRA-395

Modified:
    
incubator/cassandra/trunk/test/unit/org/apache/cassandra/db/BootstrapTest.java

Modified: 
incubator/cassandra/trunk/test/unit/org/apache/cassandra/db/BootstrapTest.java
URL: 
http://svn.apache.org/viewvc/incubator/cassandra/trunk/test/unit/org/apache/cassandra/db/BootstrapTest.java?rev=808742&r1=808741&r2=808742&view=diff
==============================================================================
--- 
incubator/cassandra/trunk/test/unit/org/apache/cassandra/db/BootstrapTest.java 
(original)
+++ 
incubator/cassandra/trunk/test/unit/org/apache/cassandra/db/BootstrapTest.java 
Fri Aug 28 03:05:49 2009
@@ -60,7 +60,7 @@
         Range r = new Range(partitioner.getToken("0"), 
partitioner.getToken("zzzzzzz"));
         ranges.add(r);
 
-        boolean result = store.doAntiCompaction(ranges, new 
EndPoint("127.0.0.1", 9150), fileList);
+        boolean result = store.forceCompaction(ranges, new 
EndPoint("127.0.0.1", 9150), 0, fileList);
 
         assertEquals(true, result); // some keys should have qualified
         assertEquals(true, fileList.size() >= 3); //Data, index, filter files


Reply via email to