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

[BUG] ignore_unavailable query parameter not working on index operations #17029

Open
IanMenendez opened this issue Jan 15, 2025 · 0 comments
Open
Labels
bug Something isn't working Other untriaged

Comments

@IanMenendez
Copy link

Describe the bug

ignore_unavailable query parameter is not working on HEAD operation with indexes

Related component

Other

To Reproduce

PUT testing
{
  "mappings": {}
}

HEAD testing?ignore_unavailable=true

POST /testing/_close

HEAD testing?ignore_unavailable=true

I expect the last HEAD response to be a 404 (since ignore_unavailable = true. But 200 is returned)

As per docs: https://opensearch.org/docs/latest/api-reference/index-apis/exists/#query-parameters

ignore_unavailable: If true, OpenSearch does not search for missing or closed indexes. Default is false.

Expected behavior

Closed indexes should throw 404 on the HEAD operation when it's closed and query param ignore_unavailable=true is provided

Additional Details

No response

@IanMenendez IanMenendez added bug Something isn't working untriaged labels Jan 15, 2025
@github-actions github-actions bot added the Other label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Other untriaged
Projects
None yet
Development

No branches or pull requests

1 participant