-
Notifications
You must be signed in to change notification settings - Fork 26.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Dubbo- netty4 nettyclienthandler should trigger heartbeat handler] fix heartbeat when channel active #1997
Conversation
@qinliujie Please help to review this pr, thanks. |
Codecov Report
@@ Coverage Diff @@
## master #1997 +/- ##
============================================
+ Coverage 50.94% 50.98% +0.03%
- Complexity 4773 4775 +2
============================================
Files 562 562
Lines 25218 25221 +3
Branches 4449 4449
============================================
+ Hits 12848 12859 +11
+ Misses 10439 10432 -7
+ Partials 1931 1930 -1
Continue to review full report at Codecov.
|
@zonghaishang it is ok,but I have a question,can we remove com.alibaba.dubbo.remoting.transport.netty4.NettyClientHandler#disconnect method?By querying the netty api document, I find that it is useless. The disconnect method is invoked only when the user intend to disconnect network and is not called when the network connection is broken.So I think channelInactive method is enough |
I confirmed your question and found the basis from the netty project:
More detail can refer here: https://github.com/netty/netty/wiki/New-and-noteworthy-in-4.0 |
@zonghaishang well done!! @chickenlj please review again~ |
* commit 'b055991b317f4e58d256721875a00c52fe415510': (271 commits) Merge pull request apache#1957, enhancements for the new async way of Dubbo. rename log file from alibaba to custom-access (apache#2057) Merge pull request apache#2049, upgrade netty4 to the latest release and make it the default option for transporter. Format style. Restore the badges in README. Polish README. Refactor README. Merge pull request apache#2047, deprecate dubbo-rpc-thrift. Merge pull request apache#2005, change maven parent from sonatype to apache. rename access log in unit test from 'alibaba' to 'alibaba.log' so that it cannot be committed by accident. (apache#2051) add test cases for injvm rpc protocol (apache#2041) add test cases for rpc thrift protocol (apache#2042) Merge pull request apache#1966, introduces dubbo metrics API module. [Dubbo- unit test class not found] fix class not found "hi" (apache#2034) add README for compatible module (apache#2019) Polish README. update README (apache#2025) [Dubbo-1695] Enhance the test coverage part-16 : dubbo-rpc/dubbo-rpc-api module (apache#2004) Merge pull request apache#1997, clienthandler in netty4 should trigger heartbeat handler. Update issue template description. ...
What is the purpose of the change
set heartbeat flag when client channel active (netty4), issue: #1996
Brief changelog
trigger handler event.
Verifying this change
Enable netty4 transporter, client connect to remote server, org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler#connected should be triggered.
Follow this checklist to help us incorporate your contribution quickly and easily:
[Dubbo-XXX] Fix UnknownException when host config not exist #XXX
. Each commit in the pull request should have a meaningful subject line and body.mvn clean install -DskipTests
&mvn clean test-compile failsafe:integration-test
to make sure unit-test and integration-test pass.