Skip to content

[FLINK-39803][e2e] Ignore jdk25 native access and deprecated method warnings#28279

Merged
snuyanzin merged 1 commit into
apache:masterfrom
snuyanzin:flink39803
May 30, 2026
Merged

[FLINK-39803][e2e] Ignore jdk25 native access and deprecated method warnings#28279
snuyanzin merged 1 commit into
apache:masterfrom
snuyanzin:flink39803

Conversation

@snuyanzin
Copy link
Copy Markdown
Contributor

What is the purpose of the change

When using restricted or terminally deprecated methods, the JVM prints warnings on JDK 25 like below:

  WARNING: A terminally deprecated method in java.lang.System has been called
  WARNING: java.lang.System::setSecurityManager has been called by org.apache.flink.runtime.security.NoOpSecurityManager
  WARNING: A restricted method in sun.misc.Unsafe has been called
  WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.apache.flink.core.memory.MemorySegment
  WARNING: Use --enable-native-access to avoid a warning for callers in this module
  WARNING: Restricted methods will be blocked in a future release unless native access is enabled

These are printed into the .out file of the processes, and cause e2e tests to fail since we check for empty .out files.

These warnings cannot be suppressed without {{--enable-native-access}}, which would require changes across the entire module structure. They also occur in third-party libraries (e.g. Netty, Kryo), so we cannot simply

Additionally, empty lines appearing in .out files can cause false positives and should also be excluded.

Brief change log

common.sh

Verifying this change

e2e

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): ( no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): ( no)
  • The serializers: ( no )
  • The runtime per-record code paths (performance sensitive): ( no )
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: ( no)
  • The S3 file system connector: ( no )

Documentation

  • Does this pull request introduce a new feature? ( no)
  • If yes, how is the feature documented? (not applicable )

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

@flinkbot
Copy link
Copy Markdown
Collaborator

flinkbot commented May 29, 2026

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

@github-actions github-actions Bot added the community-reviewed PR has been reviewed by the community. label May 30, 2026
@snuyanzin
Copy link
Copy Markdown
Contributor Author

Thanks for taking a look

@snuyanzin snuyanzin merged commit 3a785f9 into apache:master May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-reviewed PR has been reviewed by the community.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants