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/19c3bd3b Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/19c3bd3b Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/19c3bd3b Branch: refs/heads/trunk Commit: 19c3bd3b3b24372f2a6fa026ec34b546826159ee Parents: 9d7fba9 Author: Yuki Morishita <[email protected]> Authored: Tue Oct 9 10:54:35 2012 -0500 Committer: Yuki Morishita <[email protected]> Committed: Tue Oct 9 10:55:25 2012 -0500 ---------------------------------------------------------------------- .../compaction/LeveledCompactionStrategyTest.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/19c3bd3b/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);
