Skip to content

Conversation

@lukaszx0
Copy link
Contributor

  • 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

cc @ejona86 @bobwenx

}

@Test
public void keepAliveEnabled() throws Exception {
Copy link
Member

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.

Copy link
Contributor Author

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
@ejona86
Copy link
Member

ejona86 commented Feb 16, 2017

retest this please (comment to Jenkins)

@ejona86 ejona86 merged commit d116cc9 into grpc:master Feb 16, 2017
@ejona86
Copy link
Member

ejona86 commented Feb 16, 2017

Thanks @lukaszx0!

@ejona86 ejona86 added the TODO:backport PR needs to be backported. Removed after backport complete label Feb 16, 2017
@bobwenx
Copy link

bobwenx commented Feb 17, 2017

Can't wait to see this fix released

lukaszx0 added a commit to lukaszx0/grpc-java that referenced this pull request Feb 17, 2017
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 (Backports grpc#2729)
ejona86 pushed a commit that referenced this pull request Feb 17, 2017
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 (Backports #2729)
@ejona86 ejona86 removed the TODO:backport PR needs to be backported. Removed after backport complete label Feb 17, 2017
@bobwenx
Copy link

bobwenx commented Feb 27, 2017

Any plan to release this backport fix?

@carl-mastrangelo
Copy link
Contributor

@bobwenx probably not, it will show up in 1.2 which will be released in about 2 weeks.

@bobwenx
Copy link

bobwenx commented Mar 14, 2017

@carl-mastrangelo 2 weeks past, is there any progress on the 1.2 released?

@lock lock bot locked as resolved and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants