You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jm...@apache.org on 2015/05/08 15:16:29 UTC
cassandra git commit: Fix SSTableRewriterTest when run with
compression.
Repository: cassandra
Updated Branches:
refs/heads/trunk 4190c9dc2 -> 3ef932af7
Fix SSTableRewriterTest when run with compression.
Patch by aweisberg; reviewed by jmckenzie for CASSANDRA-9277
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/3ef932af
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/3ef932af
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/3ef932af
Branch: refs/heads/trunk
Commit: 3ef932af75ea0fb49b8c681229553ead003be78f
Parents: 4190c9d
Author: Ariel Weisberg <ar...@datastax.com>
Authored: Fri May 8 08:15:48 2015 -0500
Committer: Josh McKenzie <jo...@datastax.com>
Committed: Fri May 8 08:15:48 2015 -0500
----------------------------------------------------------------------
.../org/apache/cassandra/io/sstable/SSTableRewriterTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/3ef932af/test/unit/org/apache/cassandra/io/sstable/SSTableRewriterTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/io/sstable/SSTableRewriterTest.java b/test/unit/org/apache/cassandra/io/sstable/SSTableRewriterTest.java
index 17f3392..52d03bc 100644
--- a/test/unit/org/apache/cassandra/io/sstable/SSTableRewriterTest.java
+++ b/test/unit/org/apache/cassandra/io/sstable/SSTableRewriterTest.java
@@ -218,12 +218,12 @@ public class SSTableRewriterTest extends SchemaLoader
SSTableWriter writer = getWriter(cfs, dir);
try
{
- for (int i = 0; i < 1000; i++)
+ for (int i = 0; i < 10000; i++)
writer.append(StorageService.getPartitioner().decorateKey(random(i, 10)), cf);
SSTableReader s = writer.openEarly(1000);
assert s != null;
assertFileCounts(dir.list(), 2, 2);
- for (int i = 1000; i < 2000; i++)
+ for (int i = 10000; i < 20000; i++)
writer.append(StorageService.getPartitioner().decorateKey(random(i, 10)), cf);
SSTableReader s2 = writer.openEarly(1000);
assertTrue(s.last.compareTo(s2.last) < 0);