cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slebre...@apache.org
Subject git commit: Use test partitioner in SSTableSimpleWriterTest to avoid mismatch during loading
Date Thu, 16 Feb 2012 10:54:47 GMT
Updated Branches:
  refs/heads/cassandra-1.1 271630d58 -> 78142cb79


Use test partitioner in SSTableSimpleWriterTest to avoid mismatch during loading


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

Branch: refs/heads/cassandra-1.1
Commit: 78142cb790f921395273233eea5e2016b9148d36
Parents: 271630d
Author: Sylvain Lebresne <sylvain@datastax.com>
Authored: Thu Feb 16 11:54:36 2012 +0100
Committer: Sylvain Lebresne <sylvain@datastax.com>
Committed: Thu Feb 16 11:54:36 2012 +0100

----------------------------------------------------------------------
 .../io/sstable/SSTableSimpleWriterTest.java        |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/78142cb7/test/unit/org/apache/cassandra/io/sstable/SSTableSimpleWriterTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/io/sstable/SSTableSimpleWriterTest.java b/test/unit/org/apache/cassandra/io/sstable/SSTableSimpleWriterTest.java
index c9edd53..9416432 100644
--- a/test/unit/org/apache/cassandra/io/sstable/SSTableSimpleWriterTest.java
+++ b/test/unit/org/apache/cassandra/io/sstable/SSTableSimpleWriterTest.java
@@ -28,6 +28,7 @@ import org.apache.cassandra.CleanupHelper;
 import org.apache.cassandra.Util;
 import org.apache.cassandra.db.*;
 import org.apache.cassandra.db.marshal.IntegerType;
+import org.apache.cassandra.service.StorageService;
 import static org.apache.cassandra.utils.ByteBufferUtil.bytes;
 import static org.apache.cassandra.utils.ByteBufferUtil.toInt;
 
@@ -46,7 +47,7 @@ public class SSTableSimpleWriterTest extends CleanupHelper
         File dir = Directories.create(tablename, cfname).getDirectoryForNewSSTables(0);
         assert dir.exists();
 
-        IPartitioner partitioner = new RandomPartitioner();
+        IPartitioner partitioner = StorageService.getPartitioner();
         SSTableSimpleUnsortedWriter writer = new SSTableSimpleUnsortedWriter(dir, partitioner,
tablename, cfname, IntegerType.instance, null, 16);
 
         int k = 0;


Mime
View raw message