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:
Tomasz Grabiec
2023-10-06 22:25:52 +02:00
parent 3c0d723ad4
commit 0ff10c72de

View File

@@ -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();