From a3968d40b09d6dd53fc7866bc21c7a0a72831348 Mon Sep 17 00:00:00 2001 From: IceS2 Date: Thu, 12 Jun 2025 23:49:26 +0200 Subject: [PATCH] Fix 172 migrations by avoiding throwing errors (#21697) --- .../service/migration/utils/v172/MigrationUtil.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/migration/utils/v172/MigrationUtil.java b/openmetadata-service/src/main/java/org/openmetadata/service/migration/utils/v172/MigrationUtil.java index 64ed3e3cb40..52e210941d8 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/migration/utils/v172/MigrationUtil.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/migration/utils/v172/MigrationUtil.java @@ -34,10 +34,8 @@ public class MigrationUtil { deleteIndexTemplate(searchClient); deleteComponentTemplate(searchClient); deleteIlmPolicy(searchClient, null); - LOG.info("Successfully completed Data Insights objects cleanup"); } catch (Exception e) { LOG.error("Error deleting Data Insights objects", e); - throw e; } } else { LOG.info("No CLUSTER_ALIAS found, skipping cleanup"); @@ -72,7 +70,6 @@ public class MigrationUtil { } } catch (Exception e) { LOG.error("Error deleting data insights data streams", e); - throw e; } } @@ -87,7 +84,6 @@ public class MigrationUtil { searchClient.deleteILMPolicy(getClusteredPrefix(clusterAlias, ILM_POLICY_NAME)); } catch (Exception e) { LOG.error("Error deleting ILM policies", e); - throw e; } } @@ -97,7 +93,6 @@ public class MigrationUtil { searchClient.deleteIndexTemplate(INDEX_TEMPLATE_NAME); } catch (Exception e) { LOG.error("Error deleting index template", e); - throw e; } } @@ -108,7 +103,6 @@ public class MigrationUtil { searchClient.deleteComponentTemplate(componentName); } catch (Exception e) { LOG.error("Error deleting component template", e); - throw e; } } }