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

Filtered cluster state still returns stub elements #4885

Closed
clintongormley opened this issue Jan 24, 2014 · 2 comments · Fixed by #4889
Closed

Filtered cluster state still returns stub elements #4885

clintongormley opened this issue Jan 24, 2014 · 2 comments · Fixed by #4889

Comments

@clintongormley
Copy link

This request:

GET /_cluster/state/nodes

should only return the nodes element, but it still returns metadata, routing_table etc. They're empty, but still present.

@ghost ghost assigned spinscale Jan 24, 2014
@spinscale
Copy link
Contributor

Good catch, the toXContent serialization still checks for the old filter_ parameters.. will fix and add tests

@spinscale
Copy link
Contributor

fixed, also added a bunch of yaml tests, maybe you can take a look

spinscale added a commit that referenced this issue Jan 27, 2014
In order to make sure, that only the requested data is returned to the client,
a couple of fixes have been applied in the ClusterState.toXContent() method.
Also some tests were added to the yaml test suite

Closes #4885
spinscale added a commit that referenced this issue Jan 27, 2014
In order to make sure, that only the requested data is returned to the client,
a couple of fixes have been applied in the ClusterState.toXContent() method.
Also some tests were added to the yaml test suite

Closes #4885
mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
In order to make sure, that only the requested data is returned to the client,
a couple of fixes have been applied in the ClusterState.toXContent() method.
Also some tests were added to the yaml test suite

Closes elastic#4885
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants