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
Failed to deserialize response when using Top Hits aggregation with search_type "count" #9294
Comments
Hi @mitallast Thanks for reporting. Could you provide the smallest recreation of the problem that you can come up with? Will help with debugging. thanks @martijnvg sounds like it could be a problem with top-hits? |
@clintongormley Yes, this does look like a bug in |
I'm still try to reproduce like a integration test, but without success. 2 nodes 1.4.2 with centos and Oracle JVM 8, first node contains shards 1/4/5/7, second contains 0/2/3/6 (8 total, 0 replicas)
Error output:
I have this error only if query executed at second node. If first, all is OK. Any ideas? |
Sorry, I can't show our index data - DNA restrictions. I have not find any reproduce test data. I'm reproduce it in debugger Intellij IDEA, and try to find where is an mistake. Seems like See at screenshots:
Look: |
Maybe I found mistake:
But when ES at first time execute no-cached query, argument for
It means that But when it reads at next node, uses a HandlesStreamInput with this override implementation
This two implementations are not byte compatible together. |
Unfortunately I couldn't reproduce it either, but I can confirm the issue exactly as mitallast described. Not setting search_type to "count" makes it disappear. |
@mitallast you are absolutely right. I found the same issue on a different occasion and must have missed this issue. We fixed this lately and removed the |
yeah we don't use the query cache if |
Hi there, I have a lot of error messages in logs like this:
Query uses search type "count", uses a lot of filters, and have multiple aggregations, including top hits agg.
If I'm retry equals query to ES, I see correct answer without error messages in log in 99,9% times.
If I'm not use top hits agg, or standard search type "query and fetch", threre's no error message.
I have ES test cluster with CentOs 6.4 with xeon and 20gb memory, Oracle Java 1.8.0_25, ElasticSearch 1.4.2 with 10gb heap, two instances.
The text was updated successfully, but these errors were encountered: