mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-20 06:58:18 +00:00
Fix 172 migrations by avoiding throwing errors (#21697)
This commit is contained in:
parent
2803e62f0b
commit
a3968d40b0
@ -34,10 +34,8 @@ public class MigrationUtil {
|
|||||||
deleteIndexTemplate(searchClient);
|
deleteIndexTemplate(searchClient);
|
||||||
deleteComponentTemplate(searchClient);
|
deleteComponentTemplate(searchClient);
|
||||||
deleteIlmPolicy(searchClient, null);
|
deleteIlmPolicy(searchClient, null);
|
||||||
LOG.info("Successfully completed Data Insights objects cleanup");
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOG.error("Error deleting Data Insights objects", e);
|
LOG.error("Error deleting Data Insights objects", e);
|
||||||
throw e;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
LOG.info("No CLUSTER_ALIAS found, skipping cleanup");
|
LOG.info("No CLUSTER_ALIAS found, skipping cleanup");
|
||||||
@ -72,7 +70,6 @@ public class MigrationUtil {
|
|||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOG.error("Error deleting data insights data streams", 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));
|
searchClient.deleteILMPolicy(getClusteredPrefix(clusterAlias, ILM_POLICY_NAME));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOG.error("Error deleting ILM policies", e);
|
LOG.error("Error deleting ILM policies", e);
|
||||||
throw e;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -97,7 +93,6 @@ public class MigrationUtil {
|
|||||||
searchClient.deleteIndexTemplate(INDEX_TEMPLATE_NAME);
|
searchClient.deleteIndexTemplate(INDEX_TEMPLATE_NAME);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOG.error("Error deleting index template", e);
|
LOG.error("Error deleting index template", e);
|
||||||
throw e;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,7 +103,6 @@ public class MigrationUtil {
|
|||||||
searchClient.deleteComponentTemplate(componentName);
|
searchClient.deleteComponentTemplate(componentName);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOG.error("Error deleting component template", e);
|
LOG.error("Error deleting component template", e);
|
||||||
throw e;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user