Hi,
I am running datahub-upgrade with SystemUpdate parameter and getting below exception. It says index not found. Ideally the index should get created if it doesn’t exist
at org.opensearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:209)
at org.opensearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:2235)
at org.opensearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:2212)
at org.opensearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1931)
at org.opensearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1884)
at org.opensearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1852)
at org.opensearch.client.IndicesClient.delete(IndicesClient.java:118)
at com.linkedin.metadata.search.elasticsearch.indexbuilder.ESIndexBuilder.reindex(ESIndexBuilder.java:358)
at com.linkedin.metadata.search.elasticsearch.indexbuilder.ESIndexBuilder.buildIndex(ESIndexBuilder.java:225)
... 22 common frames omitted
Suppressed: org.opensearch.client.ResponseException: method [DELETE], host [<https://c9c1211d1a9049b0b64be0193936cdb7.ecenp.visa.com:9243>], URI [/vdc_dev_containerindex_v2_1702876349208?master_timeout=30s&ignore_unavailable=false&expand_wildcards=open%2Cclosed&allow_no_indices=true&ignore_throttled=false&timeout=30s], status line [HTTP/1.1 404 Not Found]
Warnings: [[ignore_throttled] parameter is deprecated because frozen indices have been deprecated. Consider cold or frozen tiers in place of frozen indices.]
{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [vdc_dev_containerindex_v2_1702876349208]","index_uuid":"_na_","resource.type":"index_or_alias","resource.id":"vdc_dev_containerindex_v2_1702876349208","index":"vdc_dev_containerindex_v2_1702876349208"}],"type":"index_not_found_exception","reason":"no such index [vdc_dev_containerindex_v2_1702876349208]","index_uuid":"_na_","resource.type":"index_or_alias","resource.id":"vdc_dev_containerindex_v2_1702876349208","index":"vdc_dev_containerindex_v2_1702876349208"},"status":404}
at org.opensearch.client.RestClient.convertResponse(RestClient.java:375)
at org.opensearch.client.RestClient.performRequest(RestClient.java:345)
at org.opensearch.client.RestClient.performRequest(RestClient.java:320)
at org.opensearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1918)
... 27 common frames omitted```