Repository navigation
[SPARK-38541][BUILD] Upgrade Netty to 4.1.75 - #35835
LuciferYang wants to merge 9 commits into
Conversation
| // `PooledByteBufAllocator` chunk size reduce from 16 MiB to 4 MiB, we need use | ||
| // `-Dio.netty.allocator.maxOrder=11` to keep the chunk size of PooledByteBufAllocator to 16m. | ||
| // 2. `PooledByteBufAllocator.defaultUseCacheForAllThreads()` change from true to false, we need | ||
| // to use `-Dio.netty.allocator.useCacheForAllThreads=true` to enable `useCacheForAllThreads`. |
There was a problem hiding this comment.
Since the default values of PooledByteBufAllocator.defaultMaxOrder() and PooledByteBufAllocator.defaultUseCacheForAllThreads() are changed after Netty 4.1.75, the PooledByteBufAllocator returned by this method change to disabled useCacheForAllThreads as default and the chunk size of PooledByteBufAllocator reduce from 16 MiB to 4 MiB.
I'd like to know what you think of this @srowen @HyukjinKwon
dongjoon-hyun
left a comment
There was a problem hiding this comment.
The change looks like a little tricky at this time. Do we need this in Apache Spark 3.3? Otherwise, I'd recommend to hold on until @MaxGekk cut the branch-3.3.
@dongjoon-hyun Agree with you. I also think we should discuss this issue after cut branch-3.3. I convert it to draft first to avoid false merging |
|
Convert to ready for review because master is already 3.4.0 |
|
Merged to master |
|
Thank you, @LuciferYang and @srowen . |
|
thanks all |
What changes were proposed in this pull request?
This pr aims to upgrade netty to 4.1.75 and this pr add the explicit dependency on
netty-tcnative-classesbecause the dependency onnetty-tcnative-classesis changed toOptionalin netty.Why are the changes needed?
The release notes as follows:
There are 2 import changes in this version and both of these changes are to reduce memory-overhead:
Does this PR introduce any user-facing change?
Yes, all changes are caused by the change of Netty.
If the user wants to maintain the same behavior as the previous version, the user needs to make the following configuration:
-Dio.netty.allocator.useCacheForAllThreads=trueto enableuseCacheForAllThreads-Dio.netty.allocator.maxOrder=11to keep the chunk size ofPooledByteBufAllocatorto 16mHow was this patch tested?
Pass GA