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

REST Reroute request should not return metadata by default #7520

Closed
kimchy opened this Issue Aug 30, 2014 · 0 comments

Comments

Projects
None yet
2 participants
@kimchy
Copy link
Member

kimchy commented Aug 30, 2014

The REST endpoint tries to filter the metadata, but uses the wrong constant for it, it uses filter_metadata instead of metadata.

@kimchy kimchy added bug labels Aug 30, 2014

bleskes added a commit to bleskes/elasticsearch that referenced this issue Aug 30, 2014

[Rest] reroute API response didn't filter metadata
By default the reroute API should return the new cluster state, excluding the metadata. It was however it was wrongly using an old parameter (filter_metadata) and thus failed to do so. This commits restores but wiring it to the correct `metric` parameter.

Closes elastic#7520

@bleskes bleskes closed this in 4f8ddd9 Sep 10, 2014

bleskes added a commit that referenced this issue Sep 10, 2014

[Rest] reroute API response didn't filter metadata
By default the reroute API should return the new cluster state, excluding the metadata. It was however it was wrongly using an old parameter (filter_metadata) and thus failed to do so. This commits restores but wiring it to the correct `metric` parameter. We also add an enum representing the possible metrics, to avoid similar future mistakes.

Closes #7520
Closes #7523
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.