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 in count and search with preference set to _primary #2896
Comments
hey, can you provide a full recreation of this failure. I tried to reproduce it in a testcase but never see the NPE simon |
hmm this preproduces with the REST api but not with the internal API... I will dig |
hi, line 196::
currentNodeId of shard is null in this case because the node is not there |
yeah that's right. I am trying to figure out if this is a bigger problem or not... |
I just tested this with 0.20 branch and it has the same issue while only for |
thanks @dobe for reporting this. I'd be curious how you ran into this, didn't this happen on 0.20 as well? |
thanks for fixing it. we've set "_primary" as the default in a new plugin we are writing (targeting 0.90). so i was hunting the bug in our plugin code for two days until i found out it was happening on _count and _search too :) |
version 0.90 RC2
steps to reproduce:
start 2 nodes
create an index with shards on both nodes
stop 1 node, so that the index state is red
issue a _count or a _search request like this:
the result for both is
The text was updated successfully, but these errors were encountered: