-
Notifications
You must be signed in to change notification settings - Fork 611
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
SOLR-17209: Fix NullPointerException in QueryComponent #2354
Conversation
I'm hoping someone else with more experience can weigh in.... However, isn't the bug here that you can have a |
I have observed it in production (running on 8.6, granted). SolrServerException sure has a constructor that takes no cause, and is used at several places in Http2SolrClient, HttpSolrClient and LBSolrClient. I guess the extra check does not hurt, since the code definitely allows the cause to be null? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eric: Exceptions are chained; the end of the chain has no cause. Any code that throws SSE directly (not due to some other exception) will result in this.
I know it's annoying but can you add a CHANGES.txt item and file a JIRA please?
@dsmiley I thought I could do the economy of it for such a small change. I created the issue and entry in CHANGES.txt. |
@dsmiley do you want to shepherd this one? If not, I will, just let me know ;-). And thanks for explaining about the exceptions! |
It'd be wonderful for you to; thanks Eric. Separately, I'm trying to combat the need for JIRAs; I hated asking for one here. Stay tuned. |
--------- Co-authored-by: Vincent Primault <vprimault@salesforce.com> Co-authored-by: Eric Pugh <epugh@opensourceconnections.com>
https://issues.apache.org/jira/browse/SOLR-17209
Description
In our production deployment of Solr, running 8.6, we see the following stacktrace (truncated):
Solution
Add a null check.
Tests
None.
Checklist
Please review the following and check all that apply:
main
branch../gradlew check
.