-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
NPE during NettyClientTransport.start() if keepAlive is enabled #2726
Comments
Yeah... that looks broken. |
@ejona86 yes, I was planning to look into that as soon as I'll find some free time. Hopefully this week. |
* 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
@ejona86 When is this fix be released? KeepAlive support is a important feature for us(and that's why we upgrade to 1.1.x), Hope this fix release quickly. |
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
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 #2726
What version of gRPC are you using?
GRPC 1.1.2
What JVM are you using (
java -version
)?1.8.0_112
What did you do?
Just simply call io.grpc.netty.NettyChannelBuilder#enableKeepAlive(boolean) during channel build. and the grpc always throw NPE exception.
and inspect the code(io.grpc.netty.NettyClientTransport#start):
i believe the field
channel
is never initialized right now, so NPE is throw by field callchannel.eventLoop()
.The text was updated successfully, but these errors were encountered: