-
Notifications
You must be signed in to change notification settings - Fork 699
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-16503: Use Http2SolrClient in SolrClientCache, SchemaDesigner #2764
Conversation
solr/core/src/java/org/apache/solr/handler/designer/SchemaDesignerConfigSetHelper.java
Outdated
Show resolved
Hide resolved
getStoredSampleDocs: simplify postDataToBlobStore: don't swallow exception collectionApiEndpoint: unused delete commented code
solr/core/src/java/org/apache/solr/handler/designer/SchemaDesignerConfigSetHelper.java
Outdated
Show resolved
Hide resolved
HttpGet httpGet = new HttpGet(uri); | ||
var request = new GenericSolrRequest(SolrRequest.METHOD.GET, "/blob/" + configSet + "_sample"); | ||
request.setRequiresCollection(true); | ||
request.setResponseParser(new InputStreamResponseParser("filestream")); |
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.
I played with this method a bit, hoping to remove InputStream low level stuff but there seems to be something special about "filestream" so I left this aspect as is. Besides, the response handling is pretty concise nonetheless.
solr/core/src/test/org/apache/solr/handler/designer/TestSchemaDesignerConfigSetHelper.java
Outdated
Show resolved
Hide resolved
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.
changes here look DRAFT-y
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.
Yeah this one I commented because somewhere in the code they InputStreamResponseParser
is being used and but didn't closed properly upon exception. I believe it was to create JsonTupleStream, need to check again. So to avoid the ObjectTracker error I commented it then. In the new commit, I uncomment it and pushed the changes. Now the TestSQLHandler
should fail!
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.
Yup failed!
./gradlew :solr:modules:sql:test --tests "org.apache.solr.handler.sql.TestSQLHandler" -Ptests.jvms=96 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:+UseParallelGC -XX:ActiveProcessorCount=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=A8C858120DC9821C -Ptests.timeoutSuite=600000! -Ptests.file.encoding=UTF-8
There is another problem I chased down. So I tried the schema designer locally from this branch just to see if it was working. It's not, yet not captured in a test failure (not good). The problem I encountered was a HTTP 400 for the |
|
I figured out why TestSQLHandler was failing and have a fix: https://issues.apache.org/jira/browse/SOLR-17629 Once that's merged, this PR here should be mergeable. |
Just a reminder: The commit message here should highlight 2 things. SolrClientCache AND the schema designer using Jetty HttpClient (HTTP/2). The title of this PR points to just one. |
…2764) --------- Co-authored-by: David Smiley <[email protected]> (cherry picked from commit 1bb9b84)
https://issues.apache.org/jira/browse/SOLR-16503
Checklist
Please review the following and check all that apply:
main
branch../gradlew check
.