mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-01 04:26:48 +00:00
test: scylla_cluster: accept ignore_dead_nodes in ReplaceConfig
This commit is contained in:
@@ -47,6 +47,7 @@ class ReplaceConfig(NamedTuple):
|
||||
replaced_id: ServerNum
|
||||
reuse_ip_addr: bool
|
||||
use_host_id: bool
|
||||
ignore_dead_nodes: list[IPAddress | HostID] = []
|
||||
|
||||
|
||||
def make_scylla_conf(workdir: pathlib.Path, host_addr: str, seed_addrs: List[str], cluster_name: str) -> dict[str, object]:
|
||||
@@ -679,6 +680,9 @@ class ScyllaCluster:
|
||||
else:
|
||||
extra_config['replace_address_first_boot'] = replaced_srv.ip_addr
|
||||
|
||||
if replace_cfg.ignore_dead_nodes:
|
||||
extra_config['ignore_dead_nodes_for_replace'] = ','.join(replace_cfg.ignore_dead_nodes)
|
||||
|
||||
assert replaced_id not in self.removed, \
|
||||
f"add_server: cannot replace removed server {replaced_srv}"
|
||||
assert replaced_id in self.stopped, \
|
||||
|
||||
Reference in New Issue
Block a user