Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrations/ES Index Creation: Double Check If the ES Index Exists #3469

Merged
merged 3 commits into from Aug 14, 2023

Conversation

adrians5j
Copy link
Member

@adrians5j adrians5j commented Aug 14, 2023

Changes

We've seen a case where the esCreateIndex utility function throws the resource_already_exists_exception error, despite the fact the internal index existence check told us that the index does not exist.

Because of this, upon index creation, if an error is throw, we double check the error message and if it's again mentioned resource_already_exists_exception, we just return the index name and we don't consider this as an actual error.

How Has This Been Tested?

Did a quick test with a local script mimicking the same index creation logic. Ensured the ex.message is actually the error code we're expecting.

image

Documentation

Changelog.

@adrians5j adrians5j added this to the 5.37.1 milestone Aug 14, 2023
@adrians5j adrians5j merged commit fcd845e into dev Aug 14, 2023
56 checks passed
@adrians5j adrians5j deleted the adrian/index-creation-err-handling branch September 5, 2023 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants