This is an automated email from the ASF dual-hosted git repository. brandonwilliams pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/cassandra-dtest.git
The following commit(s) were added to refs/heads/trunk by this push: new 7597507 Add test for bootstrap when schema changes with removed nodes 7597507 is described below commit 75975071a5f13c49a626b2c23445c8e3f0122326 Author: Brandon Williams <brandonwilli...@apache.org> AuthorDate: Thu Apr 8 09:41:57 2021 -0500 Add test for bootstrap when schema changes with removed nodes Patch by brandonwilliams, reviewed by Adam Holmberg, adelpena and bdeggleston for CASSANDRA-16577 --- bootstrap_test.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/bootstrap_test.py b/bootstrap_test.py index e51ac78..6ebefc3 100644 --- a/bootstrap_test.py +++ b/bootstrap_test.py @@ -217,6 +217,26 @@ class TestBootstrap(Tester): 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 --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org