Commit 5a2de5b
committed
### 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.
- https://openjdk.org/jeps/498
Since Netty 4.1.120.Final, we can use `io.netty.noUnsafe` setting.
- netty/netty#14943
### 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.
Closes #378 from dongjoon-hyun/SPARK-53851.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent aad9ca1 commit 5a2de5b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
0 commit comments