mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-03 21:47:10 +00:00
In this commit we move the remove_rpc_client_with_ignored_topology call to the earliest point possible - when a node first appears in token_metadata.topology. From the topology coordinator perspective this happens when a joining node moves to node_state::bootstrapping and the topology moves to transition_state::join_group0. In sync_raft_topology_nodes the node should be contained in transition_nodes. The successful wait_for_ip before entering transition_state::join_group0 ensures that update_topology should find a node's IP and put it into the topology. The barrier in commit_cdc_generation will ensure that all nodes in the cluster are using the proper connection parameters. Only outgoing connections are tracked by remove_rpc_client_with_ignored_topology, those created by the current node. This means we need to call remove_rpc_client_with_ignored_topology on each node of the cluster. fixes scylladb/scylladb#17445