-
Notifications
You must be signed in to change notification settings - Fork 1.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
[Bug]: Intermittent UnsupportedOperationException errors with nested queries #17140
Comments
Interesting ... that implementation of The Javadoc says:
In this case, the doc values are clearly be used in the query (calling I tried removing the "implementation" of
My hunch is that the problem is coming from one of the first two implementations (the anonymous classes in In particular, I'm looking at the implementation on line 609, because that includes a parent bitset and child @lizjackson-toast -- which OpenSearch version are you using? Are you able to apply that fix to |
Incidentally, this looks related to #12089, which was released in 2.12. |
Thanks @msfroh for the quick response! I appreciate that. We are using OpenSearch version 2.17.0. You mention line 609, but here in the latest commit on Thanks again! |
Oh, I think you may mean line 690 and not 609 – is that right? If so, if I interpret correctly, you're suggesting that we change this:
To this:
Is that right? Do you have any docs about how we can test this? We appreciate your help! |
I was looking at the 2.13 branch initially, to try to see if I could connect things to the stack trace in the linked forum post -- though I now notice that the logs point to 2.16. Anyway, it looks like the My concern is around the Specifically, for each of the
(That will work for all of the @reta -- do you remember if you looked into the nested docs case when you worked on #12089 ? I skimmed through it and didn't see anything, but I might have missed it. |
@msfroh I definitely not looked into nested docs case, there is a miss on my side :( we apparently have no test cases that manifest the problem with nested docs, partially to justify a miss here. |
Thanks @lizjackson-toast , if your team could submit a fix, that would be just great! |
If you need any help to get started on a fix, please let us know! |
Describe the bug
We use a boolean query that involves a nested field, like this:
We seem to be hitting the error described in this forum post, where this query gives us intermittent
UnsupportedOperationException
errors. Have others run into this? Does anybody have more information about how to avoid or debug these errors?Here is the the stacktrace from the OpenSearch logs:
To reproduce
Use a boolean query with a nested path like the query above.
Expected behavior
No intermittent failures
Screenshots
No response
Host / Environment
No response
Additional context
No response
Relevant log output
The text was updated successfully, but these errors were encountered: