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 <[email protected]> Authored: Tue Oct 9 10:54:35 2012 -0500 Committer: Yuki Morishita <[email protected]> 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);
