Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Oct 9, 2025

What changes were proposed in this pull request?

This PR aims to set io.netty.noUnsafe to true to avoid JEP-498 warnings.

Why are the changes needed?

Java 24 has started to print warnings when sub.misc.Unsafe is used to access memory.

Since Netty 4.1.120.Final, we can use io.netty.noUnsafe setting.

Does this PR introduce any user-facing change?

No behavior change.

How was this patch tested?

Manually tests.

BEFORE

Starting Operator...
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::allocateMemory has been called by io.netty.util.internal.PlatformDependent0$2 (file:/opt/spark-operator/operator/spark-kubernetes-operator.jar)
WARNING: Please consider reporting this to the maintainers of class io.netty.util.internal.PlatformDependent0$2
WARNING: sun.misc.Unsafe::allocateMemory will be removed in a future release
25/10/09 03:35:46 INFO   o.a.s.k.o.SparkOperator Configuring operator with 50 reconciliation threads.

AFTER

Starting Operator...
25/10/09 03:32:21 INFO   o.a.s.k.o.SparkOperator Configuring operator with 50 reconciliation threads.

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

No.

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-53851] Set io.netty.noUnsafe to true to suppress JEP-498 warning messages [SPARK-53851] Set io.netty.noUnsafe to true to suppress JEP-498 warning Oct 9, 2025
@github-actions github-actions bot added the BUILD label Oct 9, 2025
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-53851] Set io.netty.noUnsafe to true to suppress JEP-498 warning [SPARK-53851] Set io.netty.noUnsafe to true to suppress JEP-498 warnings Oct 9, 2025
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-53851] Set io.netty.noUnsafe to true to suppress JEP-498 warnings [SPARK-53851] Set io.netty.noUnsafe to true to avoid JEP-498 warnings Oct 9, 2025
@dongjoon-hyun
Copy link
Member Author

Thank you, @viirya . Merged to main.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-53851 branch October 9, 2025 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants