-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Inconsistent result from _cat/aliases vs actual state of the indices. #14982
Comments
This has been made consistent in 2.0. Closing |
You may be wrong, because I'm using ES 2.0 and I still see this issue, consider reopening or letting me know if this was solved on 2.1 exactly, thanks. |
I've just reread this issue and realised i misunderstood the initial description. Today, the cat-aliases and GET alias/es requests only return open indices, but a search request against an alias will throw a closed-index exception. I think it was a mistake to only show open indices in the aliases requests. We should show all indices associated with an alias. There has been a suggestion to remove any aliases automatically when closing an index, but I think this is not the correct behaviour. If a user wants this, then they can simply |
I have the same thought, if a user wants to remove an alias, the user should explicitly remove the alias. I would prefer that the aliases requests should show all indices with an alias/es associated to them. |
Note that |
I agree with making |
I think my comment was a bit premature :) I did some more digging and it turns out that the I also stand corrected on what I said above, let me summarize the current behaviour:
Unfortunately the cat api doesn't support Also we may want to change the default behaviour of |
Hmm OK - thanks for the update @javanna. I think that |
This change affects get alias, get aliases as well as cat aliases. They all return closed indices too by default. get alias and get aliases also allow to return open indices only through the `expand_wildcards` option (set it to `open`). Closes elastic#14982
This was briefly describe in this issue #14818
When I call
GET _cat/aliases
orGET _aliases
I got all the alias associated with an open index, if later I associated the same alias with an closed index, if I try to call the alias I get aindex_closed_exception
, even when is closed, I understand this, but, is that the desire behavior to theGET _cat/aliases
orGET _aliases
endpoints (to just show the alias associated with an open index)?P.S: I said is inconsistent because is not showing all the indices with an alias.
The text was updated successfully, but these errors were encountered: