Add upgrade test for old format indexed sstables (CASSANDRA-13236)

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

Branch: refs/heads/master
Commit: f1489423113713d04a1ef1a2bd4e9160abaea4b1
Parents: 5c99d20
Author: Sam Tunnicliffe <s...@beobal.com>
Authored: Thu May 4 18:04:56 2017 -0700
Committer: Philip Thompson <ptnapol...@gmail.com>
Committed: Thu May 11 14:31:57 2017 -0400

----------------------------------------------------------------------
 upgrade_tests/storage_engine_upgrade_test.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/f1489423/upgrade_tests/storage_engine_upgrade_test.py
----------------------------------------------------------------------
diff --git a/upgrade_tests/storage_engine_upgrade_test.py 
b/upgrade_tests/storage_engine_upgrade_test.py
index ac578dc..aa1cc27 100644
--- a/upgrade_tests/storage_engine_upgrade_test.py
+++ b/upgrade_tests/storage_engine_upgrade_test.py
@@ -215,12 +215,18 @@ class TestStorageEngineUpgrade(Tester):
             assert_one(session, "SELECT * FROM t WHERE k = {}".format(n), [n, 
n + 1, n + 2, n + 3, n + 4])
 
     def upgrade_with_statics_test(self):
+        self.upgrade_with_statics(rows=10)
+
+    def upgrade_with_wide_partition_and_statics_test(self):
+        """ Checks we read old indexed sstables with statics by creating 
partitions larger than a single index block"""
+        self.upgrade_with_statics(rows=1000)
+
+    def upgrade_with_statics(self, rows):
         """
         Validates we can read legacy sstables with static columns.
         """
         PARTITIONS = 1
-        ROWS = 10
-
+        ROWS = rows
         session = self._setup_cluster()
 
         session.execute('CREATE TABLE t (k int, s1 int static, s2 int static, 
t int, v1 int, v2 int, PRIMARY KEY (k, t))')


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to