-
Notifications
You must be signed in to change notification settings - Fork 25k
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
NullPointerException on /_cat/indices
when cluster RED
#26942
Labels
>bug
:Data Management/CAT APIs
Text APIs behind /_cat
:Distributed Indexing/Distributed
A catch all label for anything in the Distributed Area. Please avoid if you can.
good first issue
low hanging fruit
Comments
Is that an expected behaviour? Would it help against this kind of issue to have dedicated master nodes? It's hard to say how we could reproduce unfortunately. Maybe you guys have a better idea. |
This happens when a primary shard is being relocated. I think, we can reproduce as follows.
|
@jasontedor, Can I start working on this? |
@dnhatn Please do. |
dnhatn
added a commit
to dnhatn/elasticsearch
that referenced
this issue
Oct 10, 2017
When a node which contains the primary shard is unavailable, the primary stats (and the total stats) of an `IndexStats` will be empty for a short moment (while the primary shard is being relocated). However, we assume that these stats are always non-empty when handling `_cat/indices` in RestIndicesAction. This commit checks the content of these stats before accessing. Closes elastic#26942
dnhatn
added a commit
that referenced
this issue
Oct 10, 2017
When a node which contains the primary shard is unavailable, the primary stats (and the total stats) of an `IndexStats` will be empty for a short moment (while the primary shard is being relocated). However, we assume that these stats are always non-empty when handling `_cat/indices` in RestIndicesAction. This commit checks the content of these stats before accessing. Closes #26942
dnhatn
added a commit
that referenced
this issue
Oct 10, 2017
When a node which contains the primary shard is unavailable, the primary stats (and the total stats) of an `IndexStats` will be empty for a short moment (while the primary shard is being relocated). However, we assume that these stats are always non-empty when handling `_cat/indices` in RestIndicesAction. This commit checks the content of these stats before accessing. Closes #26942
dnhatn
added a commit
that referenced
this issue
Oct 10, 2017
When a node which contains the primary shard is unavailable, the primary stats (and the total stats) of an `IndexStats` will be empty for a short moment (while the primary shard is being relocated). However, we assume that these stats are always non-empty when handling `_cat/indices` in RestIndicesAction. This commit checks the content of these stats before accessing. Closes #26942
dnhatn
added a commit
that referenced
this issue
Oct 10, 2017
When a node which contains the primary shard is unavailable, the primary stats (and the total stats) of an `IndexStats` will be empty for a short moment (while the primary shard is being relocated). However, we assume that these stats are always non-empty when handling `_cat/indices` in RestIndicesAction. This commit checks the content of these stats before accessing. Closes #26942
clintongormley
added
:Distributed Indexing/Distributed
A catch all label for anything in the Distributed Area. Please avoid if you can.
and removed
:Cluster
labels
Feb 13, 2018
rahulanishetty
pushed a commit
to rahulanishetty/elasticsearch
that referenced
this issue
Jul 26, 2018
When a node which contains the primary shard is unavailable, the primary stats (and the total stats) of an `IndexStats` will be empty for a short moment (while the primary shard is being relocated). However, we assume that these stats are always non-empty when handling `_cat/indices` in RestIndicesAction. This commit checks the content of these stats before accessing. Closes elastic#26942
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
>bug
:Data Management/CAT APIs
Text APIs behind /_cat
:Distributed Indexing/Distributed
A catch all label for anything in the Distributed Area. Please avoid if you can.
good first issue
low hanging fruit
Elasticsearch version: Version: 5.6.1, Build: 667b497/2017-09-14T19:22:05.189Z
Plugins installed: []
JVM version: 1.8.0_144
OS version (
uname -a
if on a Unix-like system):Linux NodeB 4.4.0-1013-aws #22-Ubuntu SMP Fri Mar 31 15:41:31 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Description of the problem including expected versus actual behavior:
We have a cluster with 6 nodes.
Probably due to network flakiness, some nodes started to loose connection with each other, during several minutes.
At least 2 nodes lost connection with the master =>
NodeB
&NodeA
.Cluster went red, and stayed as is even after all the nodes came back to the cluster.
When executing a
/_cat/indices
:Bugging line is the following: RestIndicesAction.java#L368
^ A restart of the node NodeA at 01:35:16 fixed the issue.
Some relevant logs (not exhaustive):
The text was updated successfully, but these errors were encountered: