You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/11/16 06:19:49 UTC

[GitHub] [dubbo] YsoulM edited a comment on pull request #8755: [3.0] close client immediately when destroy unused invoker

YsoulM edited a comment on pull request #8755:
URL: https://github.com/apache/dubbo/pull/8755#issuecomment-969902129


   这个修复应该存在一个不太严重的问题,没有考虑到2.7.*升级到3.*的情况。
   出现问题的大体情况如下:
   如果consumer是2.7.4,provider先升级到3.0.3+,在provider发布的时候,consumer的健康检查还会异常。发布完成之后就没了。
   
   即使consumer也升级到了3.0.3+,provider发布期间,consumer也会出现异常,但是不是100%复现,日常日志如下:
   ```
   [DUBBO] Fail to connect to HeaderExchangeClient [channel=org.apache.dubbo.remoting.transport.netty4.NettyClient [0.0.0.0/0.0.0.0:52452 -> null]], dubbo version: 3.0.3, current host: 10.104.64.165
   org.apache.dubbo.remoting.RemotingException: client(url: dubbo://10.104.67.23:20880/cn.*.api.remoteservice.RemoteGeoService?anyhost=true&application=geo-server&check=false&cluster=failfast&codec=dubbo&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&heartbeat=60000&interface=cn.*.api.remoteservice.RemoteGeoService&isPerfTestSupportted=true&metadata-type=remote&methods=findGeoInfoByPoint,findGeoInfoByGeoHash&release=3.0.3&retries=0&serverApplicationName=geo-server&service-name-mapping=true&side=provider&threadpool=cached&threads=500&timeout=3000) failed to connect to server null client-side timeout 3000ms (elapsed: 3002ms) from netty client 10.104.64.165 using dubbo version 3.0.3
     at org.apache.dubbo.remoting.transport.netty4.NettyClient.doConnect(NettyClient.java:175)
     at org.apache.dubbo.remoting.transport.AbstractClient.connect(AbstractClient.java:202)
     at org.apache.dubbo.remoting.transport.AbstractClient.reconnect(AbstractClient.java:258)
     at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeClient.reconnect(HeaderExchangeClient.java:166)
     at org.apache.dubbo.remoting.exchange.support.header.ReconnectTimerTask.doTask(ReconnectTimerTask.java:49)
     at org.apache.dubbo.remoting.exchange.support.header.AbstractTimerTask.run(AbstractTimerTask.java:87)
     at org.apache.dubbo.common.timer.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:648)
     at org.apache.dubbo.common.timer.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:727)
     at org.apache.dubbo.common.timer.HashedWheelTimer$Worker.run(HashedWheelTimer.java:449)
     at java.lang.Thread.run(Thread.java:748)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org