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 cluster state API: Improved consistency #4608

Merged

Conversation

spinscale
Copy link
Contributor

Instead of specifying what kind of data should be filtered, this commit
streamlines the API to actually specify, what kind of data should be displayed.

A small feature has been added as well: If you specify an index to select on, not
only the metadata, but also the routing tables are filtered by index in order
to prevent too big cluster states to be returned.

Also the CAT apis have been changed to only return the wanted data in order to keep
network traffic as small as needed.

Tests for the cluster state API filtering have been added as well.

Note: This change breaks backwards compatibility with 0.90!

Closes #4065

@spinscale
Copy link
Contributor Author

@kimchy improved the cluster state API to work like other requests (NodeIndicesStatsRequest) and include everything by default, and allowing to deselect everything and select it again instead of filtering it.

@kimchy
Copy link
Member

kimchy commented Jan 7, 2014

LGTM!

Instead of specifying what kind of data should be filtered, this commit
streamlines the API to actually specify, what kind of data should be displayed.
This makes its behaviour similar to the other requests, like NodeIndicesStats.

A small feature has been added as well: If you specify an index to select on, not
only the metadata, but also the routing tables are filtered by index in order
to prevent too big cluster states to be returned.

Also the CAT apis have been changed to only return the wanted data in order to keep
network traffic as small as needed.

Tests for the cluster state API filtering have been added as well.

Note: This change breaks backwards compatibility with 0.90!

Closes elastic#4065
@spinscale spinscale merged commit 6ef6bb9 into elastic:master Jan 8, 2014
karmi added a commit to elastic/elasticsearch-ruby that referenced this pull request Jan 11, 2014
…` to `/_nodes`

The "_cluster" prefix has been removed in Elasticsearch 1.0.

The "/_nodes" endpoint is supported since ~ version 0.19,
so this doesn't break backwards compatibility.

Related:

* elastic/elasticsearch#4055
* elastic/elasticsearch#4065
* elastic/elasticsearch#4347
* elastic/elasticsearch#4608
karmi added a commit to elastic/elasticsearch-ruby that referenced this pull request Jan 28, 2014
karmi added a commit to elastic/elasticsearch-ruby that referenced this pull request Jan 29, 2014
karmi added a commit to elastic/elasticsearch-ruby that referenced this pull request Jan 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changes to the cluster state API
2 participants