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] OpenSearch.indices.exists('someValue') returns True when someValue is just an alias #888

Open
alexdunnjpl opened this issue Jan 29, 2025 · 0 comments
Labels
bug Something isn't working untriaged Need triage

Comments

@alexdunnjpl
Copy link

What is the bug?

Given index myIndex and corresponding alias myAlias, OpenSearch.indices.exists('myAlias') returns True when it should return False (or opensearch-py docs should make the intended behaviour clear, if this is not a bug).

How can one reproduce the bug?

Create an index and alias, as given above, instantiate an OpenSearch client, and call client.indices.exists('myAlias'), observing return value True

What is the expected behavior?

indices.exists('myAlias') should return False, as no index with that name exists.

What is your host/environment?

RHEL8, opensearch-py==2.6

Do you have any screenshots?

Image

Image

Image

Do you have any additional context?

Add any other context about the problem.

@alexdunnjpl alexdunnjpl added bug Something isn't working untriaged Need triage labels Jan 29, 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 untriaged Need triage
Projects
None yet
Development

No branches or pull requests

1 participant