cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yu...@apache.org
Subject [2/6] git commit: modify test after CASSANDRA-7463 change
Date Tue, 04 Nov 2014 19:41:36 GMT
modify test after CASSANDRA-7463 change


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

Branch: refs/heads/cassandra-2.1
Commit: 7bfb34714a19ff3ab44f253e55cc47ffd77baba3
Parents: b3c1e14
Author: Yuki Morishita <yukim@apache.org>
Authored: Tue Nov 4 13:39:28 2014 -0600
Committer: Yuki Morishita <yukim@apache.org>
Committed: Tue Nov 4 13:39:28 2014 -0600

----------------------------------------------------------------------
 .../org/apache/cassandra/db/ColumnFamilyStoreTest.java   | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/7bfb3471/test/unit/org/apache/cassandra/db/ColumnFamilyStoreTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/db/ColumnFamilyStoreTest.java b/test/unit/org/apache/cassandra/db/ColumnFamilyStoreTest.java
index 611d6af..292b7f2 100644
--- a/test/unit/org/apache/cassandra/db/ColumnFamilyStoreTest.java
+++ b/test/unit/org/apache/cassandra/db/ColumnFamilyStoreTest.java
@@ -1829,7 +1829,16 @@ public class ColumnFamilyStoreTest extends SchemaLoader
         ByteBuffer key = bytes("key");
 
         SSTableSimpleWriter writer = new SSTableSimpleWriter(dir.getDirectoryForNewSSTables(),
-                                                              cfmeta, StorageService.getPartitioner());
+                                                              cfmeta, StorageService.getPartitioner())
+        {
+            @Override
+            protected SSTableWriter getWriter()
+            {
+                // hack for reset generation
+                generation.set(0);
+                return super.getWriter();
+            }
+        };
         writer.newRow(key);
         writer.addColumn(bytes("col"), bytes("val"), 1);
         writer.close();


Mime
View raw message