-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
_cat/plugins threw NullPointerException #45321
Labels
Comments
Pinging @elastic/es-core-features |
wangkhc
added a commit
to wangkhc/elasticsearch
that referenced
this issue
Feb 21, 2020
dakrone
pushed a commit
that referenced
this issue
Feb 24, 2020
Relates #45321 Co-authored-by: Elastic Machine <[email protected]>
dakrone
pushed a commit
to dakrone/elasticsearch
that referenced
this issue
Feb 24, 2020
Relates elastic#45321 Co-authored-by: Elastic Machine <[email protected]>
dakrone
pushed a commit
to dakrone/elasticsearch
that referenced
this issue
Feb 24, 2020
Relates elastic#45321 Co-authored-by: Elastic Machine <[email protected]>
Should be resolved by #52620 |
dakrone
added a commit
that referenced
this issue
Feb 24, 2020
Relates #45321 Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Kaihong.Wang <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
dakrone
added a commit
that referenced
this issue
Feb 24, 2020
Relates #45321 Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Kaihong.Wang <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Elasticsearch version : 6.7.0
Plugins installed: [
{"analysis-icu","version":"6.7.0"},
{"analysis-ik","version":"6.7.0-rc1"},
{"analysis-kuromoji","version":"6.7.0"},
{"analysis-phonetic","version":"6.7.0"},
{"analysis-pinyin","version":"6.7.0"},
{"analysis-smartcn","version":"6.7.0"},
{"elasticsearch-repository-oss","version":"6.7.0"},
{"ingest-attachment","version":"6.7.0"},
{"mapper-murmur3","version":"6.7.0"},
{"mapper-size","version":"6.7.0"},
{"repository-hdfs","version":"6.7.0"}]
JVM version : OpenJDK 64-Bit Server VM (11.0.3-AJDK+26-Alibaba)
OS version : Linux 3.10.0-327.ali2010.rc6.alios7.x86_64 # x86_64 GNU/Linux
Description of the problem including expected versus actual behavior:
Sometimes there is
NullPointerException
error when _cat/plugins was executed and according to class org/elasticsearch/rest/action/cat/RestPluginsAction.java, this may happen when ClusterStateResponse state or NodesInfoResponse nodesInfo can't be retrieved.Looking at the code it seems that a node present in the
ClusterStateResponse
can be missing in theNodesInfoResponse
since they are retrieved in order (first the cluster state then the nodes infos). It's not really clear to me why we need to retrieve the cluster state since we have all the infos that we need in theNodesInfoResponse
response. I guess we could remove the cluster state entirely or protect against missing nodes in the nodes info response in order to avoid the NPE.But it's expected to be handled more properly instead of throwing NullPointerException.
Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: