-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[SPARK-18375][SPARK-18383][BUILD][CORE]Upgrade netty to 4.0.42.Final #15830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Test build #68408 has finished for PR 15830 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems OK. Do you need to check for a null message though, like above? In fact, the condition above for BindException could be e.getMessage != null || isBindCollision(e.getCause)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the netty code, the return of NativeIoException.getMessage is not null.
The only way to create a NativeIoException instance is to call Errors.newIOException
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. It wouldn't hurt to be defensive rather than depend on this IMHO. If it changes then suddenly this becomes a mysterious NPE.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I will modify the code.
e73c1d9 to
c4546dc
Compare
|
Test build #68470 has finished for PR 15830 at commit
|
|
Merged to master/2.1 |
## What changes were proposed in this pull request? One of the important changes for 4.0.42.Final is "Support any FileRegion implementation when using epoll transport netty/netty#5825". In 4.0.42.Final, `MessageWithHeader` can work properly when `spark.[shuffle|rpc].io.mode` is set to epoll ## How was this patch tested? Existing tests Author: Guoqiang Li <witgo@qq.com> Closes #15830 from witgo/SPARK-18375_netty-4.0.42. (cherry picked from commit bc41d99) Signed-off-by: Sean Owen <sowen@cloudera.com>
|
@srowen thank you |
## What changes were proposed in this pull request? One of the important changes for 4.0.42.Final is "Support any FileRegion implementation when using epoll transport netty/netty#5825". In 4.0.42.Final, `MessageWithHeader` can work properly when `spark.[shuffle|rpc].io.mode` is set to epoll ## How was this patch tested? Existing tests Author: Guoqiang Li <witgo@qq.com> Closes apache#15830 from witgo/SPARK-18375_netty-4.0.42.
What changes were proposed in this pull request?
One of the important changes for 4.0.42.Final is "Support any FileRegion implementation when using epoll transport netty/netty#5825".
In 4.0.42.Final,
MessageWithHeadercan work properly whenspark.[shuffle|rpc].io.modeis set to epollHow was this patch tested?
Existing tests