From 40b0900426356a6bd224002f2721dcb7535ffae4 Mon Sep 17 00:00:00 2001 From: Stefan Witschel Date: Tue, 10 Sep 2024 09:15:39 +0200 Subject: [PATCH] Adding proper subscriber deletion on connector delete --- .../main/java/dynamic/mapping/rest/MappingRestController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/dynamic-mapping-service/src/main/java/dynamic/mapping/rest/MappingRestController.java b/dynamic-mapping-service/src/main/java/dynamic/mapping/rest/MappingRestController.java index a17b60c7..5f5ad4ef 100644 --- a/dynamic-mapping-service/src/main/java/dynamic/mapping/rest/MappingRestController.java +++ b/dynamic-mapping-service/src/main/java/dynamic/mapping/rest/MappingRestController.java @@ -215,6 +215,7 @@ public ResponseEntity deleteConnectionConfiguration(@PathVariable String .body("Can't delete an enabled connector! Disable connector first."); connectorConfigurationComponent.deleteConnectorConfiguration(ident); mappingComponent.removeConnectorFromDeploymentMap(tenant, ident); + bootstrapService.shutdownAndRemoveConnector(tenant, ident); // NOTE this block was disabled since a disabled connector is not registered in // connectorRegistry