Skip to content
Permalink
Browse files
Remove USE in repair_test
Patch by brandonwilliams; reviewed by bereng for CASSANDRA-17349
  • Loading branch information
driftx committed Apr 6, 2022
1 parent 42a620d commit ad99d5c3cc24261a970cb58a8002942f8fcd9700
Showing 1 changed file with 2 additions and 3 deletions.
@@ -757,11 +757,10 @@ def _setup_multi_dc(self):
node1, node2, node3, node4 = cluster.nodelist()
session = self.patient_cql_connection(node1)
session.execute("CREATE KEYSPACE ks WITH replication = {'class': 'NetworkTopologyStrategy', 'dc1': 2, 'dc2': 1, 'dc3':1}")
session.execute("USE ks")
if cluster.version() < '4.0':
create_cf(session, 'cf', read_repair=0.0, columns={'c1': 'text', 'c2': 'text'})
create_cf(session, 'ks.cf', read_repair=0.0, columns={'c1': 'text', 'c2': 'text'})
else:
create_cf(session, 'cf', columns={'c1': 'text', 'c2': 'text'})
create_cf(session, 'ks.cf', columns={'c1': 'text', 'c2': 'text'})

# Insert 1000 keys, kill node 2, insert 1 key, restart node 2, insert 1000 more keys
logger.debug("Inserting data...")

0 comments on commit ad99d5c

Please sign in to comment.