From 7fa0635eed2a3c4e89992f4916225259408cccdf Mon Sep 17 00:00:00 2001 From: David Boucher Date: Fri, 20 Dec 2024 18:05:00 +0100 Subject: [PATCH] fix(broker): extended negotiation has a bug with the detection of broker in need of updates (#1971) * fix(broker): broker_needs_update can be false even if needed * fix(tests): negotiation tests disabled REFS: MON-15671 --- broker/neb/src/initial.cc | 10 +++++----- .../{negociation.robot => negotiation.robot.unstable} | 0 2 files changed, 5 insertions(+), 5 deletions(-) rename tests/broker-engine/{negociation.robot => negotiation.robot.unstable} (100%) diff --git a/broker/neb/src/initial.cc b/broker/neb/src/initial.cc index daa02fb591..704157301f 100644 --- a/broker/neb/src/initial.cc +++ b/broker/neb/src/initial.cc @@ -451,7 +451,7 @@ void neb::send_initial_configuration() { * Send initial configuration to the global publisher. */ void neb::send_initial_pb_configuration() { - if (config::applier::state::instance().broker_needs_update()) { +// if (config::applier::state::instance().broker_needs_update()) { SPDLOG_LOGGER_INFO(neb_logger, "init: sending poller configuration"); send_severity_list(); send_tag_list(); @@ -462,9 +462,9 @@ void neb::send_initial_pb_configuration() { send_pb_host_parents_list(); send_pb_host_group_list(); send_pb_service_group_list(); - } else { - SPDLOG_LOGGER_INFO(neb_logger, - "init: No need to send poller configuration"); - } +// } else { +// SPDLOG_LOGGER_INFO(neb_logger, +// "init: No need to send poller configuration"); +// } send_pb_instance_configuration(); } diff --git a/tests/broker-engine/negociation.robot b/tests/broker-engine/negotiation.robot.unstable similarity index 100% rename from tests/broker-engine/negociation.robot rename to tests/broker-engine/negotiation.robot.unstable