leimbag opened a new issue #9623: URL: https://github.com/apache/dubbo/issues/9623
<!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy --> - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate. ### Environment * Dubbo version: 3.0.5 * Operating System version: 7.5 * Java version: 1.8.0_171 * spring-boot: 2.5.8 * spring: 5.3.14 已搜过相同的issue: #8755 , #8756 ,但是在3.0.5版本又出现了,试了一下dubbo 2.7.15是没有这个问题的。 ### Steps to reproduce this issue 1. 开启生产者,消费者 2. 消费者正常调用生产者,无问题 3. 停掉生产者,消费者会每隔60s左右重连一次。 ### Expected Behavior Provider停机后,Consumer中ReconnectTimerTask不再Reconnect ### Actual Behavior Provider停机后,Consumer中ReconnectTimerTask一直对已经销毁的Provider进行Reconnect ``` 2022-01-24 18:44:28,308 [ERROR] [dubbo-client-idleCheck-thread-1raceId] (dubbo-client-idleCheck-thread-1) o.a.d.r.e.s.h.ReconnectTimerTask.doTask:51 - [DUBBO] Fail to connect to HeaderExchangeClient [channel=org.apache.dubbo.remoting.transport.netty4.NettyClient [/172.16.204.201:59139 -> /172.16.204.201:29811]], dubbo version: 3.0.5, current host: 172.16.204.201 org.apache.dubbo.remoting.RemotingException: client(url: dubbo://172.16.204.201:29811/com.*.dubbo.wallet.service.WalletService?anyhost=true&application=dubbo-wallet-service&background=false&category=providers&check=false&codec=dubbo&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&heartbeat=60000&interface=com.*.dubbo.wallet.service.WalletService&metadata-type=remote&methods=getWallet&path=com.*.dubbo.wallet.service.WalletService&pid=17786&protocol=dubbo&qos.enable=false&release=3.0.5&service-name-mapping=true&side=provider&sticky=false&timeout=60000×tamp=1643020518766) failed to connect to server /172.16.204.201:29811, error message is:Connection refused: /172.16.204.201:29811 at org.apache.dubbo.remoting.transport.netty4.NettyClient.doConnect(NettyClient.java:183) ~[dubbo-3.0.5.jar:3.0.5] at org.apache.dubbo.remoting.transport.AbstractClient.connect(AbstractClient.java:202) ~[dubbo-3.0.5.jar:3.0.5] at org.apache.dubbo.remoting.transport.AbstractClient.reconnect(AbstractClient.java:256) ~[dubbo-3.0.5.jar:3.0.5] at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeClient.reconnect(HeaderExchangeClient.java:171) ~[dubbo-3.0.5.jar:3.0.5] at org.apache.dubbo.remoting.exchange.support.header.ReconnectTimerTask.doTask(ReconnectTimerTask.java:49) [dubbo-3.0.5.jar:3.0.5] at org.apache.dubbo.remoting.exchange.support.header.AbstractTimerTask.run(AbstractTimerTask.java:87) [dubbo-3.0.5.jar:3.0.5] at org.apache.dubbo.common.timer.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:651) [dubbo-3.0.5.jar:3.0.5] at org.apache.dubbo.common.timer.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:730) [dubbo-3.0.5.jar:3.0.5] at org.apache.dubbo.common.timer.HashedWheelTimer$Worker.run(HashedWheelTimer.java:452) [dubbo-3.0.5.jar:3.0.5] at java.lang.Thread.run(Thread.java:844) [?:?] Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /172.16.204.201:29811 Caused by: java.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[?:?] at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[?:?] at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330) ~[netty-transport-4.1.72.Final.jar:4.1.72.Final] at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334) ~[netty-transport-4.1.72.Final.jar:4.1.72.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:710) ~[netty-transport-4.1.72.Final.jar:4.1.72.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:658) ~[netty-transport-4.1.72.Final.jar:4.1.72.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:584) ~[netty-transport-4.1.72.Final.jar:4.1.72.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496) ~[netty-transport-4.1.72.Final.jar:4.1.72.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) ~[netty-common-4.1.72.Final.jar:4.1.72.Final] at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.72.Final.jar:4.1.72.Final] at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.72.Final.jar:4.1.72.Final] ... 1 more ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
