Skip to content

remove 404 ignore for index/alias check #329

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

Open
wants to merge 1 commit into
base: 1.3
Choose a base branch
from

Conversation

solverat
Copy link

@solverat solverat commented Jun 4, 2025

I'm really not sure about this, since no one else came up with this... however: if i'm executing

bin/console generic-data-index:update:index -r

I'm receiving several exceptions:

  • Failed to get an Alias: {"error":"alias [generic_data_index_dev_data-object-folder] missing","status":404}
  • Failed to delete an index: {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [generic_data_index_dev_data-object-folder-odd]"

I don't know why you're omitting the 404 inside a existsIndex|existsAlias method. But I'm also curious since this is so crucial and never happened to anyone else - so maybe I'm missing something important here. If so, feel free to close this PR.

Used Opensearch Version 2.11.1 (action.auto_create_index=false).

Copy link

sonarqubecloud bot commented Jun 4, 2025

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.

1 participant