Skip to content

Raise Pinot Java baseline to 21#18046

Draft
xiangfu0 wants to merge 2 commits intoapache:masterfrom
xiangfu0:codex/raise-java-baseline-21
Draft

Raise Pinot Java baseline to 21#18046
xiangfu0 wants to merge 2 commits intoapache:masterfrom
xiangfu0:codex/raise-java-baseline-21

Conversation

@xiangfu0
Copy link
Copy Markdown
Contributor

@xiangfu0 xiangfu0 commented Mar 31, 2026

What changed

  • raise the Pinot service build and runtime baseline to Java 21 and enforce JDK 21+ during validation
  • keep the SPI and Java/JDBC client dependency path (pinot-spi, pinot-segment-spi, pinot-timeseries-spi, pinot-common, pinot-java-client, pinot-jdbc-client) on Java 11 bytecode
  • switch CI compatibility workflows, Docker defaults, image tags, Helm guidance, and developer docs to the new split baseline

Why

Issue #15343 proposes moving Pinot services to Java 21 while preserving lower-bytecode compatibility for library artifacts consumed from external JVMs. The service modules need the Java 21 baseline, but the SPI and client modules still need to publish lower-target artifacts so consumers do not inherit Java 21-only jars.

Impact

  • building and running Pinot services now requires JDK 21+
  • CI now validates the service baseline on Java 21
  • SPI and Java/JDBC client artifacts continue to compile to Java 11 bytecode
  • default Docker and Helm examples now point at Java 21 images

Validation

  • ./mvnw -pl pinot-query-runtime,pinot-timeseries/pinot-timeseries-planner,pinot-plugins/pinot-timeseries-lang/pinot-timeseries-m3ql -am spotless:apply -DskipTests
  • ./mvnw -pl pinot-query-runtime,pinot-timeseries/pinot-timeseries-planner,pinot-plugins/pinot-timeseries-lang/pinot-timeseries-m3ql -am checkstyle:check license:format license:check -DskipTests
  • ./mvnw -pl pinot-query-runtime,pinot-timeseries/pinot-timeseries-planner,pinot-plugins/pinot-timeseries-lang/pinot-timeseries-m3ql -am package -DskipTests -DskipShade -T1C
  • ./mvnw -pl pinot-spi,pinot-segment-spi,pinot-common,pinot-timeseries/pinot-timeseries-spi,pinot-clients/pinot-java-client,pinot-clients/pinot-jdbc-client -am spotless:apply -DskipTests
  • ./mvnw -pl pinot-spi,pinot-segment-spi,pinot-common,pinot-timeseries/pinot-timeseries-spi,pinot-clients/pinot-java-client,pinot-clients/pinot-jdbc-client -am checkstyle:check license:format license:check -DskipTests
  • ./mvnw -pl pinot-spi,pinot-segment-spi,pinot-common,pinot-timeseries/pinot-timeseries-spi,pinot-clients/pinot-java-client,pinot-clients/pinot-jdbc-client -am package -DskipTests -DskipShade -T1C

@xiangfu0 xiangfu0 changed the title [codex] Raise Pinot Java baseline to 21 Raise Pinot Java baseline to 21 Mar 31, 2026
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.34%. Comparing base (abdb6cb) to head (0caf9db).

Additional details and impacted files
@@            Coverage Diff            @@
##             master   #18046   +/-   ##
=========================================
  Coverage     63.34%   63.34%           
+ Complexity     1543     1542    -1     
=========================================
  Files          3200     3200           
  Lines        194222   194220    -2     
  Branches      29934    29934           
=========================================
+ Hits         123026   123034    +8     
+ Misses        61526    61504   -22     
- Partials       9670     9682   +12     
Flag Coverage Δ
custom-integration1 100.00% <ø> (ø)
integration 100.00% <ø> (ø)
integration1 100.00% <ø> (ø)
integration2 0.00% <ø> (ø)
java-11 ?
java-21 63.34% <ø> (+0.03%) ⬆️
temurin 63.34% <ø> (+<0.01%) ⬆️
unittests 63.34% <ø> (+<0.01%) ⬆️
unittests1 55.50% <ø> (-0.02%) ⬇️
unittests2 34.27% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@xiangfu0 xiangfu0 force-pushed the codex/raise-java-baseline-21 branch from 4c94562 to 0caf9db Compare March 31, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants