-
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
Jetty 9.4.33 breaks binary compatibility of Request.setAsyncSupported() #5496
Comments
@olamy can you add DropWizard to the list of "external" projects that we build? |
What is the purpose of Asking as it feels like we have support for this concept already built-in. Also, be aware of the |
The method See comments on c40b955#commitcomment-43538925 but in summary the DropWizard class that calls this API appears to be an attempted optimisation to avoid lock contention within getServlet. It was ported from Scala 9 years ago and I don't know when it was originally written. I very much doubt that the optimisation is really needed, and even if it was, there are ways to achieve the outcome without depending on internal APIs (yes I know those are not clearly identified - that is a problem). See #5498 where we will review I think that DropWizard could drop that entire class... but in the short term to make it work, the fix would be to remove the override of the Actually there are other problems with that class, the passed servlet is never initialised, nor introspected etc. It would be far better to actually called getServlet at least once and to cache the response, probably after a call to super.doStart. Or better yet, just remove the class and hassle us if you see any lock contention. I will close this issue as we are not going to revert this API. |
Bumps `jetty.version` from 9.4.32.v20200930 to 9.4.33.v20201020. Updates `jetty-bom` from 9.4.32.v20200930 to 9.4.33.v20201020 - [Release notes](https://github.com/eclipse/jetty.project/releases) - [Commits](jetty/jetty.project@jetty-9.4.32.v20200930...jetty-9.4.33.v20201020) Updates `jetty-servlet` from 9.4.32.v20200930 to 9.4.33.v20201020 - [Release notes](https://github.com/eclipse/jetty.project/releases) - [Commits](jetty/jetty.project@jetty-9.4.32.v20200930...jetty-9.4.33.v20201020) Updates `jetty-http` from 9.4.32.v20200930 to 9.4.33.v20201020 - [Release notes](https://github.com/eclipse/jetty.project/releases) - [Commits](jetty/jetty.project@jetty-9.4.32.v20200930...jetty-9.4.33.v20201020) Signed-off-by: dependabot[bot] <support@github.com>
Refs jetty/jetty.project#5496 Refs #3526 (cherry picked from commit eef4527)
Refs jetty/jetty.project#5496 Refs #3526 (cherry picked from commit eef4527)
Jetty version
9.4.33
Java version
11
OS type/version
linux / ubuntu 20.10
Description
We use jetty through dropwizard, and using the latest versions of both (jetty 9.4.33 / dw 2.0.14) are seeing this exception break all requests:
It looks like the signature changed to
void org.eclipse.jetty.server.Request.setAsyncSupported(boolean, Object)
, and looks like a recompile/release of dropwizard against jetty 9.4.33 will fix the issue, but jetty's backwards binary compatibility appears to have broken here.The text was updated successfully, but these errors were encountered: