You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ma...@apache.org on 2018/07/30 14:18:08 UTC
[2/2] cassandra-dtest git commit: Make sure we only have one sstable
when running offline relevel first time
Make sure we only have one sstable when running offline relevel first time
Patch by marcuse; reviewed by Jason Brown for CASSANDRA-14602
Project: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/commit/c13a78c5
Tree: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/tree/c13a78c5
Diff: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/diff/c13a78c5
Branch: refs/heads/master
Commit: c13a78c533c9e025c6ea705fc010f67cf2224d55
Parents: 32b5321
Author: Marcus Eriksson <ma...@apache.org>
Authored: Fri Jul 27 10:41:53 2018 +0200
Committer: Marcus Eriksson <ma...@apache.org>
Committed: Mon Jul 30 16:16:54 2018 +0200
----------------------------------------------------------------------
offline_tools_test.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra-dtest/blob/c13a78c5/offline_tools_test.py
----------------------------------------------------------------------
diff --git a/offline_tools_test.py b/offline_tools_test.py
index fce1f5f..2b8b7a3 100644
--- a/offline_tools_test.py
+++ b/offline_tools_test.py
@@ -146,7 +146,7 @@ class TestOfflineTools(Tester):
cluster.start(wait_for_binary_proto=True)
session = self.patient_cql_connection(node1)
logger.debug("Altering compaction strategy to LCS")
- session.execute("ALTER TABLE keyspace1.standard1 with compaction={'class': 'LeveledCompactionStrategy', 'sstable_size_in_mb':1};")
+ session.execute("ALTER TABLE keyspace1.standard1 with compaction={'class': 'LeveledCompactionStrategy', 'sstable_size_in_mb':1, 'enabled':'false'};")
node1.stress(['write', 'n=1K', 'no-warmup',
'-schema', 'replication(factor=1)',
@@ -161,6 +161,7 @@ class TestOfflineTools(Tester):
assert rc == 0, str(rc)
cluster.start(wait_for_binary_proto=True)
+ node1.nodetool('enableautocompaction keyspace1 standard1')
# test by loading large amount data so we have multiple sstables
# must write enough to create more than just L1 sstables
keys = 8 * cluster.data_dir_count
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org