-
Notifications
You must be signed in to change notification settings - Fork 665
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
[WIP] Jetty12 + EE8 #2876
base: main
Are you sure you want to change the base?
[WIP] Jetty12 + EE8 #2876
Conversation
This should link to https://issues.apache.org/jira/browse/SOLR-17069 and potentially #1509 |
@@ -295,7 +296,7 @@ bouncycastle-bcprov = { module = "org.bouncycastle:bcprov-jdk18on", version.ref | |||
carrot2-core = { module = "org.carrot2:carrot2-core", version.ref = "carrot2-core" } | |||
carrotsearch-hppc = { module = "com.carrotsearch:hppc", version.ref = "carrotsearch-hppc" } | |||
carrotsearch-randomizedtesting-runner = { module = "com.carrotsearch.randomizedtesting:randomizedtesting-runner", version.ref = "carrotsearch-randomizedtesting" } | |||
# @keep transitive dependency for version alignment |
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.
not sure why this changed
@@ -305,7 +306,7 @@ commonsio-commonsio = { module = "commons-io:commons-io", version.ref = "commons | |||
cybozulabs-langdetect = { module = "com.cybozu.labs:langdetect", version.ref = "cybozulabs-langdetect" } | |||
dropwizard-metrics-core = { module = "io.dropwizard.metrics:metrics-core", version.ref = "dropwizard-metrics" } | |||
dropwizard-metrics-graphite = { module = "io.dropwizard.metrics:metrics-graphite", version.ref = "dropwizard-metrics" } | |||
dropwizard-metrics-jetty10 = { module = "io.dropwizard.metrics:metrics-jetty10", version.ref = "dropwizard-metrics" } | |||
dropwizard-metrics-jetty10 = { module = "io.dropwizard.metrics:metrics-jetty12-ee10", version.ref = "dropwizard-metrics" } |
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.
does it matter that this is ee10 vs ee8 like the description?
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.
also the key should change from dropwizard-metrics-jetty10
KNOWN_MIME_TYPES.add("text/xml"); | ||
KNOWN_MIME_TYPES.add("text/javascript"); | ||
KNOWN_MIME_TYPES.add("text/csv"); |
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.
Why did csv/xhtml get added?
@@ -24,6 +24,7 @@ | |||
import org.junit.BeforeClass; | |||
import org.junit.Test; | |||
|
|||
// @LogLevel("org.eclipse.jetty=DEBUG") |
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.
left over from debugging?
@@ -0,0 +1 @@ | |||
a8d087bde78f231084901553bb6829663b4a22f1 |
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.
this is ee10 servlet?
@@ -350,7 +351,7 @@ private void init(int port) { | |||
connector.setIdleTimeout(THREAD_POOL_MAX_IDLE_TIME_MS); | |||
|
|||
server.setConnectors(new Connector[] {connector}); | |||
server.setSessionIdManager(new DefaultSessionIdManager(server, new Random())); | |||
// server.setSessionIdManager(new DefaultSessionIdManager(server, new Random())); |
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.
commented out?
} | ||
|
||
chain = injectJettyHandlers(chain); | ||
|
||
if (config.enableV2) { | ||
RewriteHandler rwh = new RewriteHandler(); | ||
rwh.setHandler(chain); | ||
rwh.setRewriteRequestURI(true); | ||
rwh.setRewritePathInfo(false); | ||
// rwh.setRewriteRequestURI(true); |
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.
commented out?
|
s3mock was a problem when I last looked at Jetty 11/12 due to it needing to stay on 2.x due to Java 17 required in 3.x. However, now that we are on JDK 17 on main, we should be able to upgrade to s3mock 3.x - https://github.com/adobe/S3Mock/releases/tag/3.0.0 (latest being https://github.com/adobe/S3Mock/releases/tag/3.11.0) I wonder if that will address the Jetty incompatibilities since this upgraded Spring as well. This upgrade of s3mock should be done separately from any Jetty upgrade if possible. |
https://issues.apache.org/jira/browse/SOLR-17069
Currently, Jetty supports several environments:
In my opinion, Jetty12 + EE8 is the best next step. It retains compatibility with javax.servlet without forcing the removal of modules that haven’t transitioned to jakarta.* yet, while benefiting from all the new features introduced in Jetty12.
#1509