Skip to content
Permalink
Browse files
Add test for bootstrap when schema changes with removed nodes
Patch by brandonwilliams, reviewed by Adam Holmberg, adelpena and
bdeggleston for CASSANDRA-16577
  • Loading branch information
driftx committed Apr 12, 2021
1 parent af19097 commit 75975071a5f13c49a626b2c23445c8e3f0122326
Showing 1 changed file with 20 additions and 0 deletions.
@@ -217,6 +217,26 @@ def test_simple_bootstrap_nodata(self):

assert_bootstrap_state(self, node3, 'COMPLETED')

def test_schema_removed_nodes(self):
"""
@jira_ticket CASSANDRA-16577
Test that nodes can bootstrap after a schema change performed with a node removed
"""
cluster = self.cluster
cluster.set_environment_variable('CASSANDRA_TOKEN_PREGENERATION_DISABLED', 'True')
cluster.populate(2)
cluster.start()

node1, node2 = cluster.nodelist()

node2.decommission(force=cluster.version() > '4')

session = self.patient_cql_connection(node1)
session.execute("CREATE KEYSPACE k WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};")

node3 = new_node(cluster)
node3.start(wait_for_binary_proto=True)

def test_read_from_bootstrapped_node(self):
"""
Test bootstrapped node sees existing data

0 comments on commit 7597507

Please sign in to comment.