From 1885f94474b8c09c72f2c2981b441d19e30df0bd Mon Sep 17 00:00:00 2001 From: Tomasz Grabiec Date: Thu, 6 Jul 2023 13:52:03 +0200 Subject: [PATCH] storage_service: Notify topology state machine after applying schema change Table construction may allocate tablets which may need rebalancing. Notify topology change coordinator to invoke the load balancer. --- service/storage_service.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/service/storage_service.cc b/service/storage_service.cc index 961c9b90f0..5e1f6cdae1 100644 --- a/service/storage_service.cc +++ b/service/storage_service.cc @@ -5083,6 +5083,7 @@ void storage_service::on_update_tablet_metadata() { } // FIXME: Avoid reading whole tablet metadata on partial changes. load_tablet_metadata().get(); + _topology_state_machine.event.signal(); // wake up load balancer. } future<> storage_service::load_tablet_metadata() {