storage service: topology coordinator: call notify_left() when a node leaves a cluster

When the topology coordinator is used for topology changes the gossiper
based code that calls notify_left() is not called. The coordinator needs
to call it itself.
This commit is contained in:
Gleb Natapov
2024-01-24 10:21:01 +02:00
parent 5459a8b9a5
commit b97ff54a41

View File

@@ -398,6 +398,7 @@ future<> storage_service::sync_raft_topology_nodes(mutable_token_metadata_ptr tm
if (_gossiper.get_endpoint_state_ptr(*ip) && !get_used_ips().contains(*ip)) {
co_await _gossiper.force_remove_endpoint(*ip, gms::null_permit_id);
co_await notify_left(*ip);
}
}