Skip to content

Commit

Permalink
Remove USE in repair_test
Browse files Browse the repository at this point in the history
Patch by brandonwilliams; reviewed by bereng for CASSANDRA-17349
  • Loading branch information
driftx committed Apr 6, 2022
1 parent 42a620d commit ad99d5c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions repair_tests/repair_test.py
Expand Up @@ -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...")
Expand Down

0 comments on commit ad99d5c

Please sign in to comment.