Skip to content

[Migrate] Migrate streampark-flink-proxy from Scala to Java - #4464

Merged
wolfboys merged 2 commits into
apache:devfrom
shangeyao:migrate/4450-flink-proxy-scala-to-java
Jul 31, 2026
Merged

[Migrate] Migrate streampark-flink-proxy from Scala to Java#4464
wolfboys merged 2 commits into
apache:devfrom
shangeyao:migrate/4450-flink-proxy-scala-to-java

Conversation

@shangeyao

Copy link
Copy Markdown
Contributor

Summary

  • Migrate the sole Scala source FlinkShimsProxy.scala to Java (0 .scala files in module)
  • Preserve classloader cache keys (fullVersion), ChildFirstClassLoader wiring, jar filter logic, and getObject cross-classloader deserialization
  • Add FlinkShimsProxyTest (JUnit 5) for getObject round-trip

Epic: #4408 Stage 2.2
Depends on: #4463 (#4449 packer)

Closes #4450

Test plan

  • mvn -pl streampark-flink/streampark-flink-proxy,streampark-flink/streampark-flink-client -am test
  • CI + SonarCloud

Made with Cursor

@shangeyao shangeyao changed the title [Migrate] #4450 Migrate streampark-flink-proxy from Scala to Java [Migrate] Migrate streampark-flink-proxy from Scala to Java Jul 27, 2026
shangeyao added a commit to shangeyao/streampark that referenced this pull request Jul 27, 2026
Handle InterruptedException in BuildPipeline.launch, check uberJar.delete()
result in MavenTool, and narrow FlinkShimsProxy.getObject throws clause.

Co-authored-by: Cursor <cursoragent@cursor.com>
shangeyao added a commit to shangeyao/streampark that referenced this pull request Jul 27, 2026
Handle InterruptedException in BuildPipeline.launch, check uberJar.delete()
result in MavenTool, and narrow FlinkShimsProxy.getObject throws clause.

Co-authored-by: Cursor <cursoragent@cursor.com>
@shangeyao
shangeyao force-pushed the migrate/4450-flink-proxy-scala-to-java branch from 6438f3f to 61b6f3a Compare July 27, 2026 08:05
shangeyao added a commit to shangeyao/streampark that referenced this pull request Jul 28, 2026
Convert podTemplatePaths Java Map to Scala before foreach in
KubernetesNativeClientTrait, and prepare a lightweight tagged test
image in DockerClientTest when the Flink image is missing locally.

Co-authored-by: Cursor <cursoragent@cursor.com>
shangeyao and others added 2 commits July 31, 2026 09:20
Convert FlinkShimsProxy to Java preserving classloader cache keys and
ChildFirstClassLoader behavior; add JUnit tests for getObject round-trip.

Co-authored-by: Cursor <cursoragent@cursor.com>
Narrow FlinkShimsProxy.getObject throws clause, extract matchShimIncludeReason
to reduce cognitive complexity, and add explicit JUnit test dependency.

Co-authored-by: Cursor <cursoragent@cursor.com>
@shangeyao
shangeyao force-pushed the migrate/4450-flink-proxy-scala-to-java branch from 8eace9c to 5458452 Compare July 31, 2026 01:24
@sonarqubecloud

Copy link
Copy Markdown

@Mrart

Mrart commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

LGTM

@wolfboys
wolfboys merged commit 60768b8 into apache:dev Jul 31, 2026
38 checks passed
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.

[Flink] Migrate streampark-flink-proxy from Scala to Java

3 participants