diff --git a/src/v/cluster/cluster_utils.cc b/src/v/cluster/cluster_utils.cc index acd2c928889fe..333065c65f641 100644 --- a/src/v/cluster/cluster_utils.cc +++ b/src/v/cluster/cluster_utils.cc @@ -498,11 +498,11 @@ std::optional check_result_configuration( const members_table::cache_t& current_brokers, const model::broker& new_configuration) { auto it = current_brokers.find(new_configuration.id()); - vassert( - it != current_brokers.end(), - "When broker configuration is being updated the broker must exists. " - "Updating broker {} configuration.", - new_configuration); + if (it == current_brokers.end()) { + return fmt::format( + "broker {} does not exists in list of cluster members", + new_configuration.id()); + } auto& current_configuration = it->second.broker; /** * do no allow to decrease node core count