mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-01 12:36:56 +00:00
tests: cql_test_env: Register storage_service in migration notifier
The procedure in main already does this. Processing of tablet metadata on schema changes relies on this. Without this, creating a tablet-based table will fail on missing tablet map in token metadata because the listener in storage service does not fire.
This commit is contained in:
@@ -749,6 +749,11 @@ private:
|
||||
std::ref(_cdc_generation_service)).get();
|
||||
auto stop_storage_service = defer([this] { _ss.stop().get(); });
|
||||
|
||||
_mnotifier.local().register_listener(&_ss.local());
|
||||
auto stop_mm_listener = defer([this] {
|
||||
_mnotifier.local().unregister_listener(&_ss.local()).get();
|
||||
});
|
||||
|
||||
_ss.invoke_on_all([this] (service::storage_service& ss) {
|
||||
ss.set_query_processor(_qp.local());
|
||||
}).get();
|
||||
|
||||
Reference in New Issue
Block a user