From b118dcbcec87a735505504decf97d3b2001201b2 Mon Sep 17 00:00:00 2001 From: Ivan Chvets Date: Fri, 14 Jun 2024 16:30:23 -0400 Subject: [PATCH] fix: added flush() for proper shutdown https://telecominfraproject.atlassian.net/browse/WIFI-13597 Signed-off-by: Ivan Chvets --- src/framework/KafkaManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/framework/KafkaManager.cpp b/src/framework/KafkaManager.cpp index 38cdcb12..c3983684 100644 --- a/src/framework/KafkaManager.cpp +++ b/src/framework/KafkaManager.cpp @@ -123,6 +123,7 @@ namespace OpenWifi { } Note = Queue_.waitDequeueNotification(); } + Producer.flush(); poco_information(Logger_, "Stopped..."); } @@ -328,4 +329,4 @@ namespace OpenWifi { partitions.front().get_partition())); } -} // namespace OpenWifi \ No newline at end of file +} // namespace OpenWifi