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 _cat/versions endpoint #4825
Conversation
Looks ok to me! |
I did rebase this PR on master which now have the plugin version in. I'm still adding information about jvm and elasticsearch here but they are not really plugins... Wondering if it makes sense? |
I would still want to get the jvm & es versions in the |
clusterStateRequest.local(request.paramAsBoolean("local", clusterStateRequest.local())); | ||
clusterStateRequest.masterNodeTimeout(request.paramAsTime("master_timeout", clusterStateRequest.masterNodeTimeout())); | ||
|
||
client.admin().cluster().state(clusterStateRequest, new ActionListener<ClusterStateResponse>() { |
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.
try to use AbstractRestResponseActionListener
instead of ActionListener
the onFailure
method is already implemented there
Looks cool can you also add a REST test for this feature? |
If we want to have a full picture of versions running in a cluster, we need to add a `_cat/plugins` endpoint. Response could look like: ```sh % curl es2:9200/_cat/plugins?v node component version type url desc es1 mapper-attachments 1.7.0 j Adds the attachment type allowing to parse difference attachment formats es1 lang-javascript 1.4.0 j JavaScript plugin allowing to add javascript scripting support es1 analysis-smartcn 1.9.0 j Smart Chinese analysis support es1 marvel 1.1.0 j/s http://localhost:9200/_plugins/marvel Elasticsearch Management & Monitoring es1 kopf 0.5.3 s http://localhost:9200/_plugins/kopf kopf - simple web administration tool for ElasticSearch es2 mapper-attachments 2.0.0.RC1 j Adds the attachment type allowing to parse difference attachment formats es2 lang-javascript 2.0.0.RC1 j JavaScript plugin allowing to add javascript scripting support es2 analysis-smartcn 2.0.0.RC1 j Smart Chinese analysis support ``` Closes elastic#4824.
Closed with f54e924 |
If we want to have a full picture of versions running in a cluster, we need to add a
_cat/versions
endpoint.Response could look like:
% curl es2:9200/_cat/versions?v node component version es1 jvm 1.6.0_65-b14 es1 elasticsearch 0.90.10 es1 elasticsearch-mapper-attachment 1.7.0 es1 elasticsearch-lang-js 1.7.0 es1 elasticsearch-analysis-smartcn 1.9.0 es2 jvm 1.6.0_65-b14 es2 elasticsearch 1.0.0.RC1 es2 elasticsearch-mapper-attachment 2.0.0.RC1 es2 elasticsearch-lang-js 2.0.0.RC1 es2 elasticsearch-analysis-smartcn 2.0.0.RC1
Closes #4824.
Note that this PR requires first #4378 to be merged.