Repository: cassandra Updated Branches: refs/heads/trunk c5bc81148 -> a7fed2995
Fix LeveledCompactionStrategyTest.testGrouperLevels with compression patch by Ariel Weisberg; reviewed by Carl Yeksigian for CASSANDRA-9278 Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/a7fed299 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/a7fed299 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/a7fed299 Branch: refs/heads/trunk Commit: a7fed2995e7c1830b2bb957162a52a864839b758 Parents: c5bc811 Author: Ariel Weisberg <[email protected]> Authored: Thu Apr 30 17:43:53 2015 -0400 Committer: Aleksey Yeschenko <[email protected]> Committed: Thu May 14 17:56:20 2015 +0300 ---------------------------------------------------------------------- .../cassandra/db/compaction/LeveledCompactionStrategyTest.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/a7fed299/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 85880a5..c7935fe 100644 --- a/test/unit/org/apache/cassandra/db/compaction/LeveledCompactionStrategyTest.java +++ b/test/unit/org/apache/cassandra/db/compaction/LeveledCompactionStrategyTest.java @@ -104,6 +104,9 @@ public class LeveledCompactionStrategyTest public void testGrouperLevels() throws Exception{ ByteBuffer value = ByteBuffer.wrap(new byte[100 * 1024]); // 100 KB value, make it easy to have multiple files + //Need entropy to prevent compression so size is predictable with compression enabled/disabled + new Random().nextBytes(value.array()); + // Enough data to have a level 1 and 2 int rows = 20; int columns = 10;
