Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2C8CD200CE7 for ; Thu, 13 Jul 2017 02:15:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2B08216A3A7; Thu, 13 Jul 2017 00:15:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 711FB16A387 for ; Thu, 13 Jul 2017 02:15:23 +0200 (CEST) Received: (qmail 80760 invoked by uid 500); 13 Jul 2017 00:15:16 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 80260 invoked by uid 99); 13 Jul 2017 00:15:16 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jul 2017 00:15:16 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 49BCDF5533; Thu, 13 Jul 2017 00:15:13 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: zznate@apache.org To: commits@cassandra.apache.org Date: Thu, 13 Jul 2017 00:15:40 -0000 Message-Id: <310f80fa496a47bb9b94cfb6c448c27d@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [29/50] cassandra-dtest git commit: Add upgrade test for old format indexed sstables (CASSANDRA-13236) archived-at: Thu, 13 Jul 2017 00:15:24 -0000 Add upgrade test for old format indexed sstables (CASSANDRA-13236) Project: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/commit/f1489423 Tree: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/tree/f1489423 Diff: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/diff/f1489423 Branch: refs/heads/master Commit: f1489423113713d04a1ef1a2bd4e9160abaea4b1 Parents: 5c99d20 Author: Sam Tunnicliffe Authored: Thu May 4 18:04:56 2017 -0700 Committer: Philip Thompson 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-dtest/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-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org