cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yu...@apache.org
Subject [3/3] git commit: fix infinite loop in LCS test
Date Tue, 09 Oct 2012 15:59:48 GMT
fix infinite loop in LCS test


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/3d2decf5
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/3d2decf5
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/3d2decf5

Branch: refs/heads/trunk
Commit: 3d2decf54b7869c744d9890cff8b05847d888615
Parents: 732d82b
Author: Yuki Morishita <yukim@apache.org>
Authored: Tue Oct 9 10:54:35 2012 -0500
Committer: Yuki Morishita <yukim@apache.org>
Committed: Tue Oct 9 10:54:35 2012 -0500

----------------------------------------------------------------------
 .../compaction/LeveledCompactionStrategyTest.java  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/3d2decf5/test/unit/org/apache/cassandra/db/compaction/LeveledCompactionStrategyTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/db/compaction/LeveledCompactionStrategyTest.java
b/test/unit/org/apache/cassandra/db/compaction/LeveledCompactionStrategyTest.java
index 56f12de..9392195 100644
--- a/test/unit/org/apache/cassandra/db/compaction/LeveledCompactionStrategyTest.java
+++ b/test/unit/org/apache/cassandra/db/compaction/LeveledCompactionStrategyTest.java
@@ -69,7 +69,7 @@ public class LeveledCompactionStrategyTest extends SchemaLoader
 
         LeveledCompactionStrategy strat = (LeveledCompactionStrategy)store.getCompactionStrategy();
 
-        while (strat.getLevelSize(0) > 0)
+        while (strat.getLevelSize(0) > 1)
         {
             store.forceMajorCompaction();
             Thread.sleep(200);


Mime
View raw message