Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 6.2] fix(nemesis): filter raft-topology errors when starting/stopping nodes #9592

Merged
merged 1 commit into from
Dec 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions sdcm/nemesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,7 @@ def _kill_scylla_daemon(self):
self.target_node.wait_jmx_up()
self.cluster.wait_for_schema_agreement()

@decorate_with_context(ignore_raft_topology_cmd_failing)
@target_all_nodes
def disrupt_stop_wait_start_scylla_server(self, sleep_time=300): # pylint: disable=invalid-name
self.target_node.stop_scylla_server(verify_up=False, verify_down=True)
Expand Down Expand Up @@ -1134,7 +1135,7 @@ def get_all_sstables(self, tables: list[str], node: BaseNode = None):

return sstables

@decorate_with_context(ignore_ycsb_connection_refused)
@decorate_with_context([ignore_ycsb_connection_refused, ignore_raft_topology_cmd_failing])
def _destroy_data_and_restart_scylla(self, keyspaces_for_destroy: list = None, sstables_to_destroy_perc: int = 50): # pylint: disable=too-many-statements
tables = self.cluster.get_non_system_ks_cf_list(db_node=self.target_node, filter_empty_tables=False,
filter_by_keyspace=keyspaces_for_destroy)
Expand Down Expand Up @@ -1354,7 +1355,7 @@ def _add_and_init_new_cluster_nodes(self, count, timeout=MAX_TIME_WAIT_FOR_NEW_N
InfoEvent(message="FinishEvent - New Nodes are up and normal").publish()
return new_nodes

@decorate_with_context(ignore_ycsb_connection_refused)
@decorate_with_context([ignore_ycsb_connection_refused, ignore_raft_topology_cmd_failing])
def _terminate_cluster_node(self, node):
self.cluster.terminate_node(node)
self.monitoring_set.reconfigure_scylla_monitoring()
Expand Down Expand Up @@ -1677,7 +1678,7 @@ def wait_for_old_node_to_removed():
new_node.set_seed_flag(True)
self.cluster.update_seed_provider()

@decorate_with_context(ignore_ycsb_connection_refused)
@decorate_with_context([ignore_ycsb_connection_refused, ignore_raft_topology_cmd_failing])
@target_all_nodes
def disrupt_kill_scylla(self):
self._kill_scylla_daemon()
Expand Down
Loading