cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1179364 - /cassandra/branches/cassandra-0.8/test/unit/org/apache/cassandra/db/CleanupTest.java
Date Wed, 05 Oct 2011 18:26:08 GMT
Author: jbellis
Date: Wed Oct  5 18:26:07 2011
New Revision: 1179364

URL: http://svn.apache.org/viewvc?rev=1179364&view=rev
Log:
backport r1174472 from 1.0.0

Modified:
    cassandra/branches/cassandra-0.8/test/unit/org/apache/cassandra/db/CleanupTest.java

Modified: cassandra/branches/cassandra-0.8/test/unit/org/apache/cassandra/db/CleanupTest.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.8/test/unit/org/apache/cassandra/db/CleanupTest.java?rev=1179364&r1=1179363&r2=1179364&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.8/test/unit/org/apache/cassandra/db/CleanupTest.java (original)
+++ cassandra/branches/cassandra-0.8/test/unit/org/apache/cassandra/db/CleanupTest.java Wed
Oct  5 18:26:07 2011
@@ -101,7 +101,9 @@ public class CleanupTest extends Cleanup
         assertEquals(LOOPS, rows.size());
 
         ColumnFamilyStore cfi = cfs.getIndexedColumnFamilyStore(COLUMN);
-        assertTrue(cfi.isIndexBuilt());
+        long start = System.currentTimeMillis();
+        while (!SystemTable.isIndexBuilt(cfi.table.name, cfi.getColumnFamilyName()) &&
System.currentTimeMillis() < start + 10000)
+            Thread.sleep(10);
 
         // verify we get it back w/ index query too
         IndexExpression expr = new IndexExpression(COLUMN, IndexOperator.EQ, VALUE);



Mime
View raw message