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

HDDS-11717. Require Java 17 for build #7439

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

This is a breaking change that I would like to discuss.

The immediate goal is to upgrade Spring Framework to 6.2.0, the latest version, because Spring 5.x is EOL.

Spring 6.x requires Java 17.

Recon is the only component in Ozone that uses Spring.

Therefore with this change Ozone would require Java 17 at build time, and for Recon also at runtime.

Findbugs check needs to be disabled (temporarily), because Spotbugs 3 does not support Java 17 classes, and Spotbugs 4 emits ~2K failures for the same codebase.

https://issues.apache.org/jira/browse/HDDS-11717

How was this patch tested?

Ozone is built in CI with Java 17, producing Java 8 jars. Tests are run with Java 17.

acceptance (MR) tests Ozone filesystem jars with Hadoop using Java 8.

https://github.com/adoroszlai/ozone/actions/runs/11858701453

@adoroszlai adoroszlai added build Pull request that modifies the build process dependencies Pull requests that update a dependency file labels Nov 15, 2024
@adoroszlai adoroszlai self-assigned this Nov 15, 2024
@szetszwo
Copy link
Contributor

@adoroszlai , we probably should discuss it in the dev@ mailing list.

@adoroszlai
Copy link
Contributor Author

Started discussion: https://lists.apache.org/thread/k9kvobrg7ybthjfs78rfscpc2lty5x5y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Pull request that modifies the build process dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants