Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "Introduce sharded<system_keyspace> instance" from Pavel Emelyanov
" Making the system-keyspace into a standard sharded instance will help to fix several dependency knots. First, the global qctx and local-cache both will be moved onto the sys-ks, all their users will be patched to depend on system-keyspace. Now it's not quite so, but we're moving towards this state. Second, snitch instance now sits in the middle of another dependency loop. To untie one the preferred ip and dc/rack info should be moved onto system keyspace altogether (now it's scattered over several places). The sys-ks thus needs to be a sharded service with some state. This set makes system-keyspace sharded instance, equipps it with all the dependencies it needs and passes it as dependency into storage service, migration manager and API. This helps eliminating a good portion of global qctx/cache usage and prepares the ground for snitch rework. tests: unit(dev) v1: unit(debug), dtest.simple_boot_shutdown(dev) " * 'br-sharded-system-keyspace-instance-2' of https://github.com/xemul/scylla: (25 commits) system_keyspace: Make load_host_ids non-static system_keyspace: Make load_tokens non-static system_keyspace: Make remove_endpoint and update_tokens non-static system_keyspace: Coroutinize update_tokens system_keyspace: Coroutinize remove_endpoint system_keyspace: Make update_cached_values non-static system_keyspace: Coroutinuze update_peer_info system_keyspace: Make update_schema_version non-static schema_tables: Add sharded<system_keyspace> argument to update_schema_version_and_announce replica: Push sharded<system_keyspace> down to parse_system_tables api: Carry sharded<system_keyspace> reference along storage_service: Keep sharded<system_keyspace> reference migration_manager: Keep sharded<system_keyspace> reference system_keyspace: Remove temporary qp variable system_keyspace: Make get_preferred_ips non-static system_keyspace: Make cache_truncation_record non-static system_keyspace: Make check_health non-static system_keyspace: Make build_bootstrap_info non-static system_keyspace: Make build_dc_rack_info non-static system_keyspace: Make setup_version non-static ...
- Loading branch information
Showing
18 changed files
with
199 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.