Skip to content
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

Add modules to support Jetty 12 #3515

Merged
merged 4 commits into from Aug 25, 2023
Merged

Conversation

zUniQueX
Copy link
Member

This PR provides basic support for Jetty 12.

Notable changes

  1. The HttpChannel.Listener interface doesn't exist anymore. The instrumented class here isn't ported for Jetty 12.
  2. Jetty 12 doesn't have dependencies on the Servlet API in the jetty-server module. To allow multiple EE version implementations, the InstrumentedHandler implementation is moved out to a separate EEx module. The core metrics-jetty12 module contains an abstract base class for implementations. Perspectively, the metrics-jetty12 module should contain an implementation which doesn't require the servlet classes. However, the Dropwizard framework is servlet-only at the moment. The implementation without the servlet classes is therefore deferred until requested.
  3. The constructors of InstrumentedQueuedThreadPool are aligned with the super class' constructors.

@zUniQueX zUniQueX requested review from a team as code owners August 19, 2023 21:33
@joschi joschi added the feature label Aug 25, 2023
@joschi joschi added this to the 4.2.20 milestone Aug 25, 2023
metrics-jetty12-ee10/pom.xml Outdated Show resolved Hide resolved
metrics-jetty12/pom.xml Outdated Show resolved Hide resolved
@joschi joschi enabled auto-merge (squash) August 25, 2023 20:46
@joschi joschi merged commit 4063dd9 into dropwizard:release/4.2.x Aug 25, 2023
3 of 4 checks passed
@zUniQueX zUniQueX deleted the jetty-12 branch August 26, 2023 00:12
dongjoon-hyun pushed a commit to apache/spark that referenced this pull request Nov 1, 2023
### What changes were proposed in this pull request?
This pr upgrade dropwizard metrics from 4.2.19 to 4.2.21.

### Why are the changes needed?
The new version includes the following major updates:
- dropwizard/metrics#2652
- dropwizard/metrics#3515
- dropwizard/metrics#3523
- dropwizard/metrics#3570

The full release notes as follows:
- https://github.com/dropwizard/metrics/releases/tag/v4.2.20
- https://github.com/dropwizard/metrics/releases/tag/v4.2.21

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Pass GitHub Actions

### Was this patch authored or co-authored using generative AI tooling?
No

Closes #43608 from LuciferYang/SPARK-45743.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
joschi added a commit that referenced this pull request Jan 19, 2024
joschi added a commit that referenced this pull request Jan 19, 2024
joschi added a commit that referenced this pull request Jan 19, 2024
joschi added a commit that referenced this pull request Jan 19, 2024
joschi added a commit that referenced this pull request Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants