]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
manager/kafka_client.py: Do not trigger a configuration renewal after receiving a...
authorAleš Mrázek <ales.mrazek@nic.cz>
Mon, 27 Oct 2025 09:48:28 +0000 (10:48 +0100)
committerAleš Mrázek <ales.mrazek@nic.cz>
Wed, 29 Oct 2025 21:44:13 +0000 (22:44 +0100)
python/knot_resolver/manager/kafka_client.py

index 59e01fccc8181e4da695cdf959fef4a87307d68e..0fd82a0da36562854de490483a6540d8d72f73da 100644 (file)
@@ -9,7 +9,7 @@ from knot_resolver.constants import KAFKA_LIB
 from knot_resolver.datamodel import KresConfig
 from knot_resolver.manager.config_store import ConfigStore
 from knot_resolver.manager.exceptions import KresKafkaClientError
-from knot_resolver.manager.triggers import trigger_reload, trigger_renew
+from knot_resolver.manager.triggers import trigger_reload
 from knot_resolver.utils.functional import Result
 from knot_resolver.utils.modeling import try_to_parse
 from knot_resolver.utils.modeling.exceptions import DataParsingError, DataValidationError
@@ -220,8 +220,10 @@ if KAFKA_LIB:
             else:
                 # backup and replace file with new data
                 backup_and_replace(file_tmp_path, file_path)
-                # trigger renew
-                trigger_renew(config, force=True)
+
+                # We don't need to renew the configuration
+                # because the new JSON configuration should always follow the other files.
+                # trigger_renew(config, force=True)
 
     logger.info("Successfully processed message")