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

Add error handling to GetIndicesPointingToAlias #293

Merged
merged 1 commit into from
Jun 21, 2013

Conversation

MaxHorstmann
Copy link
Contributor

/wrongname/_aliases used to return an empty array (e.g. in ES 0.20) for a non-existing alias, but in more recent ES versions (0.90) it returns

{"error":"IndexMissingException[[wrongname] missing]","status":404}

So we need to add explicit error handling here, otherwise GetIndicesPointingToAlias returns two "indices" called "error" and "status".

…used to return an empty array

(e.g. in ES 0.20) for a non-existing alias, but in more recent ES versions (0.90) it returns
{"error":"IndexMissingException[[wrongname] missing]","status":404}
So we need to add explicit error handling here, otherwise GetIndicesPointingToAlias returns two
"indices" called "error" and "status".
@Mpdreamz
Copy link
Member

Thanks! 0.90 introduces several other alias endpoints too that are on the roadmap to be mapped too.

Mpdreamz added a commit that referenced this pull request Jun 21, 2013
Add error handling to GetIndicesPointingToAlias
@Mpdreamz Mpdreamz merged commit 62feee0 into elastic:master Jun 21, 2013
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.

2 participants