Skip to content

[Build] Raise StreamPark compile and CI baseline to JDK 11#4417

Merged
wolfboys merged 10 commits into
apache:devfrom
shangeyao:build/jdk11-baseline
Jul 15, 2026
Merged

[Build] Raise StreamPark compile and CI baseline to JDK 11#4417
wolfboys merged 10 commits into
apache:devfrom
shangeyao:build/jdk11-baseline

Conversation

@shangeyao

@shangeyao shangeyao commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Raise StreamPark 3.0 compile and runtime baseline to JDK 11:

  • Set project.build.jdk=11 and update CI workflows (backend, unit-test, E2E)
  • Fix ClassLoaderUtils dynamic classpath on JDK 9+ (--add-opens / module path)
  • Console JDK 11 startup readiness (streampark-env.sh, assembly scripts, upgrade guide)
  • Maven Wrapper and basic E2E stabilization on JDK 11

Related issues

Closes #4409.

Test plan

  • ./mvnw clean install -Pfast -pl streampark-console/streampark-console-service -am -DskipTests on JDK 11
  • CI backend / unit-test / E2E workflows green
  • Manual Console start on JDK 11

AI Disclosure

  • Model: Claude (Cursor Agent)
  • Platform/Tool: Cursor
  • Human Oversight: partially reviewed
  • Prompt Summary: Split JDK 11 upgrade into dedicated PR for StreamPark 3.0

Made with Cursor

shangeyao and others added 4 commits July 5, 2026 21:51
Set Maven release 11, update Spotless compliance, switch Docker and CI
workflows to JDK 11, and align module compiler overrides.

Closes apache#4409 (part 3/3). Ref apache#4410.

Generated-by: Cursor
Co-authored-by: Cursor <cursoragent@cursor.com>
Walk the class hierarchy to locate the ucp field on JDK 11+ app
classloaders, add JUnit coverage, and enable surefire add-opens on JDK 9+.

Closes apache#4409 (part 1/3). Ref apache#4410.

Generated-by: Cursor
Co-authored-by: Cursor <cursoragent@cursor.com>
Enable add-opens JVM opts, enforce JDK 11+ at startup, fix classpath layout,
add javax.annotation-api, and document Console vs job JDK requirements.

Closes apache#4409 (part 2/3). Ref apache#4410.

Generated-by: Cursor
Co-authored-by: Cursor <cursoragent@cursor.com>
Compile MavenWrapperHelper with --release 11 at runtime and stop
packaging prebuilt wrapper classes so project builds work in JDK 11
containers. Update basic E2E for Docker 29, local Chrome, Git SSL,
and Projects page flows verified on macOS.

Generated-by: Cursor
Co-authored-by: Cursor <cursoragent@cursor.com>
shangeyao and others added 3 commits July 7, 2026 22:40
Update root POM version and build script banner to reflect the 3.0 preview release line.

Co-authored-by: Cursor <cursoragent@cursor.com>
- Ignore webapp-v2 paths in Backend and Unit-Test workflows
- Bump dorny/paths-filter action pin
- Fail E2E workflow when test jobs fail (exit 1)

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
RUN \
if [ "$TARGETPLATFORM" = "linux/arm64" ];then \
sudo rm -f /etc/yum.repos.d/*.repo; \
sudo wget http://mirrors.aliyun.com/repo/Centos-altarch-7.repo -O /etc/yum.repos.d/CentOS-Base.repo; \

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

wget http://mirrors.aliyun.com/repo/Centos-altarch-7.repo -O /etc/yum.repos.d/CentOS-Base.repo 

The URL is inaccessible. Please provide the public CentOS repository addresses here, not aliyun

…heck

Add the JSR-250 annotation API to known dependencies and release license docs so Backend CI passes after the JDK 11 baseline upgrade.

Co-authored-by: Cursor <cursoragent@cursor.com>
@shangeyao
shangeyao requested a review from wolfboys July 15, 2026 01:42
shangeyao and others added 2 commits July 15, 2026 15:17
Replace Java 8 in Hadoop-based Yarn test images so StreamPark Console can start after the JDK 11 baseline upgrade.

Co-authored-by: Cursor <cursoragent@cursor.com>
Resolve Yarn E2E Dockerfile conflicts by bundling Eclipse Temurin JDK 11
instead of CentOS yum, preserving dev's mirror-retirement fix while meeting
StreamPark 3.0 JDK 11 runtime requirements.

Co-authored-by: Cursor <cursoragent@cursor.com>
@sonarqubecloud

Copy link
Copy Markdown

@wolfboys wolfboys left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

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.

[Proposal] Migrate StreamPark Console baseline from JDK 8 to JDK 11

2 participants