Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

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

What changes were proposed in this pull request?

This PR aims to prefer to use native Netty transports by default for Apache Spark 4.1.0.

Why are the changes needed?

To help users configure Netty transport libraries easily.

Netty provides the following platform specific JNI transports:

  • Linux (since 4.0.16)
  • MacOS/BSD (since 4.1.11)

These JNI transports add features specific to a particular platform, generate less garbage, and generally improve performance when compared to the NIO based transport.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass the CIs.

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

No.

@dongjoon-hyun dongjoon-hyun marked this pull request as draft October 26, 2025 21:52
@dongjoon-hyun dongjoon-hyun marked this pull request as ready for review October 27, 2025 01:03
@dongjoon-hyun
Copy link
Member Author

Thank you, @HyukjinKwon !

@dongjoon-hyun
Copy link
Member Author

Thank you, @yaooqinn ~

@dongjoon-hyun
Copy link
Member Author

Merged to master.

cc @peter-toth , too.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-54032 branch October 27, 2025 02:42
huangxiaopingRD pushed a commit to huangxiaopingRD/spark that referenced this pull request Nov 25, 2025
### What changes were proposed in this pull request?

This PR aims to prefer to use native Netty transports by default for Apache Spark 4.1.0.

### Why are the changes needed?

To help users configure Netty transport libraries easily.
- https://netty.io/wiki/native-transports.html

> Netty provides the following platform specific JNI transports:
> - Linux (since 4.0.16)
> - MacOS/BSD (since 4.1.11)
>
> These JNI transports add features specific to a particular platform, generate less garbage, and generally improve performance when compared to the NIO based transport.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs.

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

No.

Closes apache#52736 from dongjoon-hyun/SPARK-54032.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
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.

3 participants