mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-28 10:41:12 +00:00
" Gossiper calls snitch->gossiper_starting() when being enabled. This generates a dependency loop -- snitch needs gossiper to gossip its states and get DC/RACK, gossiper needs snitch to do this kick. This set removes this notification. The new approach is to kick the snitch to gossip its states in the same places where gossiper is enabled() so that only the snitch->gossiper dependency remains. As a side effect the set ditches a bunch of references to global snitch instance. tests: unit(dev) " * 'br-snitch-gossiper-starting' of https://github.com/xemul/scylla: snitch: Remove gossiper_starting() snitch: Remove gossip_snitch_info() property-file snitch: Re-gossip states with the help of .get_app_states() property-file snitch: Reload state in .start() ec2 multi-region snitch: Register helper in .start() snitch, storage service: Gossip snitch info once snitch: Introduce get_app_states() method property-file snitch: Use _my_distributed to re-shard storage service: Shuffle snitch name gossiping