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 health status parameter to cat indices API #20393

Merged
merged 2 commits into from
Sep 13, 2016
Merged

Add health status parameter to cat indices API #20393

merged 2 commits into from
Sep 13, 2016

Conversation

jasontedor
Copy link
Member

This commit adds a health status parameter to the cat indices API for
filtering on indices that match the specified status (green|yellow|red).

This commit adds a health status parameter to the cat indices API for
filtering on indices that match the specified status (green|yellow|red).
body:
settings:
number_of_shards: "1"
number_of_replicas: "1"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this assumes that no rest test runner runs against multiple nodes. I think the some of the client test runners do though, so this index will be green for them.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a very good catch, thank you @javanna.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@javanna I pushed b0ad122, can you take a look?

@javanna
Copy link
Member

javanna commented Sep 9, 2016

I left a comment around testing, LGTM otherwise

The cat indices health status test tests that the response can be
filtered based on the health status of an index. However, this test was
implicitly relying on the fact that there was only one data node. This
commit modifies this test to account for the fact that there could be
multiple data nodes active in the cluster under test.
@javanna
Copy link
Member

javanna commented Sep 13, 2016

LGTM thanks @jasontedor

@jasontedor jasontedor merged commit c7bfbe3 into elastic:master Sep 13, 2016
@jasontedor jasontedor deleted the cat-indices-health-status branch September 13, 2016 11:57
jasontedor added a commit that referenced this pull request Sep 13, 2016
This commit adds a health status parameter to the cat indices API for
filtering on indices that match the specified status (green|yellow|red).

Relates #20393
jasontedor added a commit that referenced this pull request Sep 13, 2016
This commit adds a health status parameter to the cat indices API for
filtering on indices that match the specified status (green|yellow|red).

Relates #20393
@jasontedor
Copy link
Member Author

Thanks @javanna.

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.

None yet

3 participants