You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jb...@apache.org on 2012/02/16 16:27:16 UTC
[4/5] git commit: Use test partitioner in SSTableSimpleWriterTest to
avoid mismatch during loading
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/trunk
Commit: 78142cb790f921395273233eea5e2016b9148d36
Parents: 271630d
Author: Sylvain Lebresne <sy...@datastax.com>
Authored: Thu Feb 16 11:54:36 2012 +0100
Committer: Sylvain Lebresne <sy...@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;