Skip to content

Commit 84fa14f

Browse files
committed
SOLR-17161 Create the solrj-jetty module (#4038)
Co-authored-by: Kevin Risden <[email protected]> Co-authored-by: David Smiley <[email protected]> (cherry picked from commit 38c56e7)
1 parent db6be14 commit 84fa14f

File tree

55 files changed

+551
-387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+551
-387
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
title: Separate out a new solrj-jetty module, meaning users can opt in to the jetty http client only if they need it. Also makes ConcurrentUpdateBaseSolrClient client independent.
2+
type: changed
3+
authors:
4+
- name: Jan Høydahl
5+
- name: David Smiley
6+
- name: Kevin Risden
7+
links:
8+
- name: SOLR-17161
9+
url: https://issues.apache.org/jira/browse/SOLR-17161

gradle/maven/defaults-maven.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ configure(rootProject) {
2828
":solr:cross-dc-manager",
2929
":solr:core",
3030
":solr:solrj",
31+
":solr:solrj-jetty",
3132
":solr:solrj-streaming",
3233
":solr:solrj-zookeeper",
3334
":solr:test-framework",

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ includeBuild("build-tools/missing-doclet")
3838
include ":platform"
3939
include "solr:api"
4040
include "solr:solrj"
41+
include "solr:solrj-jetty"
4142
include "solr:solrj-zookeeper"
4243
include "solr:solrj-streaming"
4344
include "solr:core"

solr/benchmark/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ dependencies {
4444
implementation project(':solr:test-framework')
4545
implementation project(':solr:core')
4646
implementation project(':solr:solrj')
47+
implementation project(':solr:solrj-jetty')
4748
implementation project(':solr:solrj-streaming')
4849

4950
implementation libs.apache.lucene.core

solr/core/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ dependencies {
4848

4949
api project(':solr:api')
5050
api project(':solr:solrj')
51+
implementation project(':solr:solrj-jetty')
5152
api project(':solr:solrj-zookeeper')
5253
api project(':solr:solrj-streaming')
5354

solr/core/src/java/org/apache/solr/update/StreamingSolrClients.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,9 @@ public void handleError(Throwable ex) {
151151
}
152152

153153
@Override
154-
public void onSuccess(Response resp, InputStream respBody) {
155-
req.trackRequestResult(resp, respBody, true);
154+
public void onSuccess(Object responseMetadata, InputStream respBody) {
155+
Response jettyResponse = (Response) responseMetadata;
156+
req.trackRequestResult(jettyResponse, respBody, true);
156157
}
157158

158159
static class Builder extends ConcurrentUpdateJettySolrClient.Builder {

solr/cross-dc-manager/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ dependencies {
4646
runtimeOnly libs.lmax.disruptor
4747

4848
testImplementation project(':solr:test-framework')
49+
testImplementation project(':solr:solrj-jetty')
4950
testImplementation libs.apache.lucene.testframework
5051
testImplementation libs.carrotsearch.randomizedtesting.runner
5152
testImplementation libs.junit.junit

solr/cross-dc-manager/gradle.lockfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ org.eclipse.jetty.ee10:jetty-ee10-servlet:12.0.27=compileClasspath,jarValidation
157157
org.eclipse.jetty.ee10:jetty-ee10-servlets:12.0.27=solrPlatformLibs
158158
org.eclipse.jetty.ee10:jetty-ee10-webapp:12.0.27=solrPlatformLibs
159159
org.eclipse.jetty.http2:jetty-http2-client-transport:12.0.27=jarValidation,runtimeClasspath,runtimeLibs,solrPlatformLibs,testRuntimeClasspath
160-
org.eclipse.jetty.http2:jetty-http2-client:12.0.27=compileClasspath,jarValidation,runtimeClasspath,runtimeLibs,solrPlatformLibs,testCompileClasspath,testRuntimeClasspath
161-
org.eclipse.jetty.http2:jetty-http2-common:12.0.27=compileClasspath,jarValidation,runtimeClasspath,runtimeLibs,solrPlatformLibs,testCompileClasspath,testRuntimeClasspath
162-
org.eclipse.jetty.http2:jetty-http2-hpack:12.0.27=compileClasspath,jarValidation,runtimeClasspath,runtimeLibs,solrPlatformLibs,testCompileClasspath,testRuntimeClasspath
160+
org.eclipse.jetty.http2:jetty-http2-client:12.0.27=jarValidation,runtimeClasspath,runtimeLibs,solrPlatformLibs,testCompileClasspath,testRuntimeClasspath
161+
org.eclipse.jetty.http2:jetty-http2-common:12.0.27=jarValidation,runtimeClasspath,runtimeLibs,solrPlatformLibs,testCompileClasspath,testRuntimeClasspath
162+
org.eclipse.jetty.http2:jetty-http2-hpack:12.0.27=jarValidation,runtimeClasspath,runtimeLibs,solrPlatformLibs,testCompileClasspath,testRuntimeClasspath
163163
org.eclipse.jetty.http2:jetty-http2-server:12.0.27=jarValidation,solrPlatformLibs,testRuntimeClasspath
164-
org.eclipse.jetty:jetty-alpn-client:12.0.27=compileClasspath,jarValidation,runtimeClasspath,runtimeLibs,solrPlatformLibs,testCompileClasspath,testRuntimeClasspath
164+
org.eclipse.jetty:jetty-alpn-client:12.0.27=jarValidation,runtimeClasspath,runtimeLibs,solrPlatformLibs,testCompileClasspath,testRuntimeClasspath
165165
org.eclipse.jetty:jetty-alpn-java-client:12.0.27=jarValidation,runtimeClasspath,runtimeLibs,solrPlatformLibs,testRuntimeClasspath
166166
org.eclipse.jetty:jetty-alpn-java-server:12.0.27=jarValidation,solrPlatformLibs,testRuntimeClasspath
167167
org.eclipse.jetty:jetty-alpn-server:12.0.27=jarValidation,solrPlatformLibs,testRuntimeClasspath

solr/licenses/osgi.annotation-LICENSE-ASL.txt

Lines changed: 0 additions & 201 deletions
This file was deleted.

solr/licenses/osgi.annotation-NOTICE.txt

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)