leimbag commented on issue #9623:
URL: https://github.com/apache/dubbo/issues/9623#issuecomment-1020845134


   
搭了个项目,[github项目地址](https://github.com/leimbag/l-spring-cloud-gateway-dubbo-gray)
   
   操作步骤:
   
   本地启动一个nacos,修改启动项目的bootstrap.properties配置文件
   
   1. 启动web-demo的WebDemoApplication
   
   2. 启动dubbo-user-service的DubboUserServiceApplication
   
   3. 使用http://localhost:19830/user/getUserNameByShutdown?uid=2第一次访问,等待10s返回结果
   
   4. 
第二次访问使用http://localhost:19830/user/getUserNameByShutdown?uid=3,然后立即停止dubbo-user-service,然后页面立马得到结果uid:3
   
   此时状态为web-demo一直在进行
   ```
   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:62829 -> /172.16.204.201:29801]], dubbo version: 3.0.5, 
current host: 172.16.204.201
   ```
   
   **打的DubboInvoker断点一直没有进入。**
   
   
   直到重新启动dubbo-user-service服务,才进入DubboInvoker断点。
   
   对应DubboInvoker的
   ```
                           if (closeAll) {
                               client.closeAll(serverShutdownTimeout);
                           } else {
                               client.close(serverShutdownTimeout);
                           }
   ```
   
   期间对应的web-demo的值状态为:
   
   ```
   closeAll 一直为false
   client 为 HeaderExchangeClient
   ```
   
   最后一次为:
   
   ```
   closeAll 为 false
   client 为 org.apache.dubbo.rpc.protocol.dubbo.ReferenceCountExchangeClient
   ```


-- 
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]

Reply via email to