Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Apr 29, 2025

What changes were proposed in this pull request?

This PR aims to support Java 24 as a preparation of Java 25 LTS.

  • Update lombok, jacoco, and mockito libraries to support Java 24.
  • Disable pmd and spotbugs plugins.
  • Add --enable-native-access=ALL-UNNAMED to DEFAULT_JVM_OPTS.
  • Add SPARK_USER=spark environment to the operator pod explicitly.
  • Update 4.0.0-preview2 dependency to 4.0.1-SNAPSHOT to validate with the upcoming Apache Spark 4.0.0 RC5.
  • Use azul/zulu-openjdk:24-jre as the docker base image.
  • Add Java 24 to the CI.

Why are the changes needed?

To support Java 24 as a preparation of Java 25 LTS.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass the CIs.

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

No.

@dongjoon-hyun dongjoon-hyun marked this pull request as draft April 29, 2025 17:27
viirya
viirya previously approved these changes Apr 29, 2025
@viirya viirya dismissed their stale review April 29, 2025 17:28

It is not ready.

@dongjoon-hyun dongjoon-hyun force-pushed the SPARK-51953 branch 4 times, most recently from 910127d to c006e07 Compare April 30, 2025 03:38
@dongjoon-hyun dongjoon-hyun marked this pull request as ready for review April 30, 2025 03:59
@dongjoon-hyun
Copy link
Member Author

It's ready. Could you review this once more, @viirya ?

@dongjoon-hyun
Copy link
Member Author

Also, cc @jiangzho

consoleOutput = true
ignoreFailures = false
}
if (JavaVersion.current() < JavaVersion.VERSION_24) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We cannot have these plugins for Java 24?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, these two plugins doesn't support Java 24 yet.

The development speed is not the same~

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, these tools (PMD and spotbugs) are static code analysis tools. So, Java 17/21 test coverage are enough already. We don't need them in Java 24.

@dongjoon-hyun
Copy link
Member Author

Thank you, @viirya ! Merged to main.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-51953 branch April 30, 2025 04:56
dongjoon-hyun added a commit that referenced this pull request Apr 30, 2025
### What changes were proposed in this pull request?

This PR aims to update `Compatibility` section of `docs/operations.md`.

### Why are the changes needed?

To make it up-to-date with newer Java and K8s versions.
- apache/spark#49684
- #178

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

No, this is a doc-only change.

### How was this patch tested?

Manual review.

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

No.

Closes #179 from dongjoon-hyun/SPARK-51965.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants