-
Notifications
You must be signed in to change notification settings - Fork 4k
netty: Fix NPE in NettyClientTransport when keepalive is enabled #2729
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 | ||
| public void keepAliveEnabled() throws Exception { |
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.
Could you do an RPC in each of these tests and just make sure you get OK? That will check many of the == null checks in the code.
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.
Done
Fixes NPE when keepalive is enabled. * Move creation of keepAliveManager to the bottom of start() * Enable keepAlive in NettyClientTransportTest * Add test cases checking if keepalive is enabled/disabled, specifically. Fixes grpc#2726
019f8b7 to
24eae85
Compare
|
retest this please (comment to Jenkins) |
|
Thanks @lukaszx0! |
|
Can't wait to see this fix released |
|
Any plan to release this backport fix? |
|
@bobwenx probably not, it will show up in 1.2 which will be released in about 2 weeks. |
|
@carl-mastrangelo 2 weeks past, is there any progress on the 1.2 released? |
keepAliveManagerto the bottom ofstart()NettyClientTransportTestFixes #2726
cc @ejona86 @bobwenx