From 7cbda21fb6a15c7f2a7b46761f440bd55356f325 Mon Sep 17 00:00:00 2001 From: Sagar Patil Date: Thu, 19 Mar 2026 20:28:29 +0530 Subject: [PATCH] Seed PROD_KAFKA_TOPIC_VERSION_SETTING property for eventManagerServiceV2 INSERT IGNORE ensures idempotency on re-deploy (PK: entity_type, entity_value, property_type). Required by eventManagerServiceV2 at startup for TopicSettingServlet.refreshTopicSettings(). Co-Authored-By: Claude Opus 4.6 (1M context) --- .../sql/002_populate_properties_table.sql | 28 ++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/test-framework/helm/property-settings-svc-v2/sql/002_populate_properties_table.sql b/test-framework/helm/property-settings-svc-v2/sql/002_populate_properties_table.sql index ca86f48..15aed85 100644 --- a/test-framework/helm/property-settings-svc-v2/sql/002_populate_properties_table.sql +++ b/test-framework/helm/property-settings-svc-v2/sql/002_populate_properties_table.sql @@ -9,11 +9,31 @@ #) #SELECT # e.name as entity_type, -# CONCAT(prop.client_id, "_", prop.entity_id) AS entity_value, +# CONCAT(prop.client_id, "_", prop.entity_id) AS entity_value, # p.name AS property_type, # prop.property_value, -# prop.is_active -#FROM propertiesV1 prop, +# prop.is_active +#FROM propertiesV1 prop, # property_types p, entity_types e -#WHERE +#WHERE # prop.property_type_id = p.id AND prop.entity_type_id = e.id; + +use property_settings_db_v2; + +-- Seed default Kafka topic version setting (required by eventManagerServiceV2) +INSERT IGNORE INTO properties +( + entity_type, + entity_value, + property_type, + property_value, + is_active +) +VALUES +( + 'AGENCY', + 'ALL', + 'PROD_KAFKA_TOPIC_VERSION_SETTING', + '{}', + 1 +);