From 370b5616c3ba247a86604cd2316a40fce1c29de1 Mon Sep 17 00:00:00 2001 From: Savindu Dimal Date: Thu, 28 Nov 2024 15:07:59 +0530 Subject: [PATCH] Add missing J2 mappings Add J2 mappings for broker.performance_tuning.delivery.topic_message_delivery_strategy.strategy_name and broker.performance_tuning.delivery.topic_message_delivery_strategy.delivery_timeout --- .../product/src/main/resources/conf/default.json | 2 ++ .../conf/templates/repository/conf/broker.xml.j2 | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/distribution/product/src/main/resources/conf/default.json b/modules/distribution/product/src/main/resources/conf/default.json index 108a05e65c..3751f33bd8 100644 --- a/modules/distribution/product/src/main/resources/conf/default.json +++ b/modules/distribution/product/src/main/resources/conf/default.json @@ -267,6 +267,8 @@ "keystore.ssl_profile.default.servers": "*", "keystore.listener_profile.ssl_verify_client" : "optional", "keystore.listener_profile.bind_address" : "0.0.0.0", + "broker.performance_tuning.delivery.topic_message_delivery_strategy.strategy_name": "DISCARD_NONE", + "broker.performance_tuning.delivery.topic_message_delivery_strategy.delivery_timeout": "60", "broker.transport.amqp.enabled" : true, "broker.transport.amqp.bind_address" : "0.0.0.0", "broker.transport.amqp.default_connection.enabled" : true, diff --git a/modules/distribution/product/src/main/resources/conf/templates/repository/conf/broker.xml.j2 b/modules/distribution/product/src/main/resources/conf/templates/repository/conf/broker.xml.j2 index dc90e3f637..9c341af78a 100644 --- a/modules/distribution/product/src/main/resources/conf/templates/repository/conf/broker.xml.j2 +++ b/modules/distribution/product/src/main/resources/conf/templates/repository/conf/broker.xml.j2 @@ -385,13 +385,17 @@ This file is ciphertool compliant. Refer PRODUCT_HOME/repository/conf/security/c sent but ack is not honoured. --> - DISCARD_NONE + {% if broker.performance_tuning.delivery.topic_message_delivery_strategy.strategy_name is defined %} + {{broker.performance_tuning.delivery.topic_message_delivery_strategy.strategy_name}} + {% endif %} - 60 + {% if broker.performance_tuning.delivery.topic_message_delivery_strategy.delivery_timeout is defined %} + {{broker.performance_tuning.delivery.topic_message_delivery_strategy.delivery_timeout}} + {% endif %}