From 52366f33e5f7b367e392bf00a6183d5561abba8f Mon Sep 17 00:00:00 2001 From: Kamil Braun Date: Thu, 30 Mar 2023 15:55:51 +0200 Subject: [PATCH] service/raft: group0_state_machine: signal topology state machine in `load_snapshot` The `_topology_state_machine.event` condition variable should be signalled whenever the topology state is updated, including on snapshot load. --- service/raft/group0_state_machine.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/service/raft/group0_state_machine.cc b/service/raft/group0_state_machine.cc index c48b678a9c..9107babdfe 100644 --- a/service/raft/group0_state_machine.cc +++ b/service/raft/group0_state_machine.cc @@ -128,6 +128,7 @@ future<> group0_state_machine::load_snapshot(raft::snapshot_id id) { // memory and thus needs to be protected with apply mutex auto read_apply_mutex_holder = co_await get_units(_client._read_apply_mutex, 1); co_await _ss.topology_state_load(); + _ss._topology_state_machine.event.signal(); } future<> group0_state_machine::transfer_snapshot(gms::inet_address from, raft::snapshot_descriptor snp) {