-
Notifications
You must be signed in to change notification settings - Fork 26.5k
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
拉出再拉入,在连接中断之后不会重新建连 #6583
Comments
|
Same problem. |
@AlbumenJ |
please check this patch #7322 |
Try it with the latest version, if you still have problems, you can reopen the issue |
Environment
Steps to reproduce this issue
Pls. provide [GitHub address] to reproduce this issue.
Expected Result
因为dubbo客户端有主动重新建连的功能,如果服务端主动关闭,应该只有少量请求报错,之后会重新建连恢复。如果网络设备出现问题,也应该在网络设备恢复后报错停止。
Actual Result
在部分情况下会一直报错,直到重启恢复。
服务端在拉出之后,客户端会替换成lazyUrl,这里设置的RECONNECT_KEY为false
org.apache.dubbo.rpc.protocol.dubbo.ReferenceCountExchangeClient
因为是lazy连接,在下一个请求发起之前会尝试重新建连,在启动ReconnectTimerTask的时候会看下shouldReconnect(url)的状态是否要重新建连。
org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeClient
如果被拉出之后再拉入,这里的url就是默认的false,不会启动ReconnectTimerTask
The text was updated successfully, but these errors were encountered: