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

NIFI-11518 Upgrade Jetty from 9.4.51 to 10.0.15 #7622

Closed
wants to merge 1 commit into from

Conversation

exceptionfactory
Copy link
Contributor

Summary

NIFI-11518 Upgrades Jetty dependencies from 9.4.51 to 10.0.15.

Jetty 10 represents a major version change that requires Java 11 as the minimum version, but retains compatibility with the javax.servlet interfaces. This provides an incremental upgrade approach without more substantial changes that would be required to adopt Jetty 11.

Most of the package and module names remain the same between Jetty 9.4 and 10, with the notable exception of the WebSocket libraries, as highlighted in the Jetty Migration Guide from 9.4 to 10. These changes are reflected in the updates to the Jetty WebSocket Processors and Services.

Additional changes include upgrading Solr dependencies from 8.11.2 to 9.2.1 in order to align with Jetty 10 dependencies. The Jetty ELContextCleaner class is deprecated and removed from the default web application configuration.

The Hadoop Client libraries also have a dependency on Jetty 9.4 WebSocket libraries for Yarn shell access. Yarn shell access is not necessary for NiFi component operation, but the referencing Hadoop class imports the Jetty client class. For this reason, several Maven configurations exclude Jetty 9.4 and include Jetty 10 WebSocket client to avoid runtime exceptions.

Tracking

Please complete the following tracking steps prior to pull request creation.

Issue Tracking

Pull Request Tracking

  • Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
  • Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

  • Pull Request based on current revision of the main branch
  • Pull Request refers to a feature branch with one commit containing changes

Verification

Please indicate the verification steps performed prior to pull request creation.

Build

  • Build completed using mvn clean install -P contrib-check
    • JDK 17

Licensing

  • New dependencies are compatible with the Apache License 2.0 according to the License Policy
  • New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

  • Documentation formatting appears as expected in rendered files

- Updated Jetty WebSocket components using Jetty 10 components
- Upgraded Solr components from 8.11.2 to 9.2.1 to align with Jetty 10 dependencies
@mattyb149
Copy link
Contributor

+1 LGTM, thanks for the upgrade, this will certainly improve the situation for NiFi 2.0. Merging to main

@mattyb149 mattyb149 closed this in c085604 Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants