mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-24 10:30:38 +00:00
Since we manage ip to id mapping directly in gossiper now we need to load the mapping on boot. We already do it anyway, but only due to a bug which checks raft topology mode config before it is set, so the code thinks that it is in the gossiper mode and loads peers table into the gossiper and token metadata. Fix the bug and load peers into the gossiper only since token metadata is managed by raft. The series also removes address map related test that no longer checks anything and replace it with unit test. It also adds the dc/rack check to "join node" rpc. The check is done during shadow round now, but for it to work it requires dc/rack to be propagated through the gossiper and we want to eventually drop it. Ref: scylladb/scylladb#21777 * 'load-peers' of https://github.com/gleb-cloudius/scylla: topology coordinator: reject replace request if topology does not match gossiper: fix the logic of shadow_round parameter storage_service: do not add endpoint to the gossiper during topology loading. storage_service: load peers into gossiper on boot in raft topology mode storage_service: set raft topology change mode before using it in join_cluster locator: drop inet_address usage to figure out per dc/rack replication test: drop test_old_ip_notification_repro.py test: address_map: check generation handling during entry addition