tx-lcn
tx-lcn copied to clipboard
Caused by: java.lang.IllegalStateException: There is no normal TM.
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
1. Bug Description
通常出现这个错误是因为对应的事务注册中心挂掉了或者是没有配置下面这段代码:
tx-lcn.manager.host=0.0.0.0
但我此次该配置的都全部配置了但还是报错,导致项目无法启动。
我配置了集群,关键代码如下:
tx-lcn:
client:
manager-address: 127.0.0.1:8070,127.0.0.1:8171
springcloud:
loadbalance:
enabled: true
但我关闭其中的8171节点的时候就会出现这个错误。
正常集群来说,一个节点挂掉了,转向另外一个节点,也能保持正常运行。
查询了官方文档,如图所示:
不太明白。难道我配置了两个节点,其中一个节点挂掉了,另外一个项目就起不来呢?
2. Environment:
- JDK version:1.8
- OS:centos7.8
- TX-LCN version:5.0.2
- Others:
3. Exception Stacktrace
Paste your Exception Stacktrace here!