JecketLiao opened a new issue, #6601:
URL: https://github.com/apache/incubator-seata/issues/6601

   <!-- Please do not use this issue template to report security 
vulnerabilities but refer to our [security 
policy](https://github.com/seata/seata/security/policy). -->
   
   - [ ] I have searched the [issues](https://github.com/seata/seata/issues) of 
this repository and believe that this is not a duplicate.
   
   ### Ⅰ. Issue Description
   seata server 部署在k8s,使用nacos作为配置和服务中心,nacos服务列表看到当前的ip是:10.233.65.126。seata 
server由于某种原因发生了重启导致ip发生了变化,nacos上的服务的变成:10.233.82.253。此时RM 
service还是向旧的server的ip发送注册请求,导致无法连接。
   
   
   ### Ⅱ. Describe what happened
   
     If there is an exception, please attach the exception trace:
   
   eoutChecker_1_1 | i.s.c.r.netty.NettyClientChannelManager  | 0101 can not 
connect to 10.233.65.126:8091 cause:can not register RM,err:can not connect to 
services-server.
   
   io.seata.common.exception.FrameworkException: can not register RM,err:can 
not connect to services-server.
        at 
io.seata.core.rpc.netty.NettyClientChannelManager.doConnect(NettyClientChannelManager.java:240)
        at 
io.seata.core.rpc.netty.NettyClientChannelManager.acquireChannel(NettyClientChannelManager.java:109)
        at 
io.seata.core.rpc.netty.NettyClientChannelManager.reconnect(NettyClientChannelManager.java:186)
        at 
io.seata.core.rpc.netty.AbstractNettyRemotingClient$1.run(AbstractNettyRemotingClient.java:115)
        at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at 
java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
        at 
java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at 
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.base/java.lang.Thread.run(Thread.java:831)
   
   
   ### Ⅲ. Describe what you expected to happen
   RM应该可以通过nacos获取到当前seata server的最新ip地址,而不是一直向旧的ip发送请求。
   
   ### Ⅳ. How to reproduce it (as minimally and precisely as possible)
   
   1. 启动seata server
   2. 启动RM service
   3. 重启seata server
   
   Minimal yet complete reproducer code (or URL to code):
   
   
   
   ### Ⅴ. Anything else we need to know?
   
   
   ### Ⅵ. Environment:
   
   - JDK version(e.g. `java -version`):17
   - Seata client/server version:  1.7.0
   - Database version:8.0
   - OS(e.g. `uname -a`):Linux
   - Others:


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