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
Show open and closed indices in _cat/indices #7936
Conversation
When asking for `GET /_cat/indices?v`, you can now retrieve closed indices in addition to opened ones. ``` health status index pri rep docs.count docs.deleted store.size pri.store.size yellow open .marvel-2014.05.21 1 1 8792 0 21.7mb 21.7mb close test yellow open .marvel-2014.05.22 1 1 3871 0 10.7mb 10.7mb red open .marvel-2014.05.27 1 1 ``` Closes elastic#7907.
|
||
table.startRow(); | ||
table.addCell(indexHealth == null ? "red*" : indexHealth.getStatus().toString().toLowerCase(Locale.getDefault())); | ||
table.addCell(state == IndexMetaData.State.OPEN ? (indexHealth == null ? "red*" : indexHealth.getStatus().toString().toLowerCase(Locale.getDefault())) : null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe you should use Local.ROOT
@s1monw PR updated. |
I think this LGTM - any change we can get a rest test for this? |
When asking for `GET /_cat/indices?v`, you can now retrieve closed indices in addition to opened ones. ``` health status index pri rep docs.count docs.deleted store.size pri.store.size yellow open .marvel-2014.05.21 1 1 8792 0 21.7mb 21.7mb close test yellow open .marvel-2014.05.22 1 1 3871 0 10.7mb 10.7mb red open .marvel-2014.05.27 1 1 ``` Closes #7907. Closes #7936. (cherry picked from commit f0052a5)
When asking for `GET /_cat/indices?v`, you can now retrieve closed indices in addition to opened ones. ``` health status index pri rep docs.count docs.deleted store.size pri.store.size yellow open .marvel-2014.05.21 1 1 8792 0 21.7mb 21.7mb close test yellow open .marvel-2014.05.22 1 1 3871 0 10.7mb 10.7mb red open .marvel-2014.05.27 1 1 ``` Closes #7907. Closes #7936. (cherry picked from commit f0052a5)
This doesn't seem to have made it into the guide yet. |
@dadoonet please could you document this change? |
@michaelsalmon thanks for raising it. I totally missed that. |
It looks good but I'm pretty sure that line 44 should end -rnk8 now. |
So true! Will fix. Thanks. |
Fixed typo in cat indices Relates to #7936
Fixed typo in cat indices Relates to #7936
Fixed typo in cat indices Relates to #7936
Fixed typo in cat indices Relates to #7936
Fixed typo in cat indices Relates to elastic#7936
When asking for `GET /_cat/indices?v`, you can now retrieve closed indices in addition to opened ones. ``` health status index pri rep docs.count docs.deleted store.size pri.store.size yellow open .marvel-2014.05.21 1 1 8792 0 21.7mb 21.7mb close test yellow open .marvel-2014.05.22 1 1 3871 0 10.7mb 10.7mb red open .marvel-2014.05.27 1 1 ``` Closes elastic#7907. Closes elastic#7936. (cherry picked from commit f0052a5)
Related to elastic#7936 (cherry picked from commit d9c19cd) (cherry picked from commit f185f34)
Fixed typo in cat indices Relates to elastic#7936
When asking for
GET /_cat/indices?v
, you can now retrieve closed indices in addition to opened ones.Closes #7907.