codingapi / codingapi/tx-lcn

Caused by: java.lang.IllegalStateException: There is no normal TM.

未关闭
#548 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
4.2k
派生
1.4k
PR 合并指标
30 天内没有已合并 PR

描述

- [ ] I have searched the [issues](https://github.com/codingapi/tx-lcn/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节点的时候就会出现这个错误。
正常集群来说,一个节点挂掉了,转向另外一个节点,也能保持正常运行。
查询了官方文档,如图所示:
![image](https://user-images.githubusercontent.com/45055576/93841244-88acbc00-fcc5-11ea-9c41-bc526546c5e5.png)
不太明白。难道我配置了两个节点,其中一个节点挂掉了,另外一个项目就起不来呢?

### 2. Environment:
- JDK version:1.8
- OS:centos7.8
- TX-LCN version:5.0.2
- Others:

### 3. Exception Stacktrace

```
Paste your Exception Stacktrace here!
```

### 4. Tour Idea

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先检查 TX-LCN 5.0.2 的 manager 集群配置,尤其是 tx-lcn.client.manager-address 和文档中记录的 tx-lcn.manager.host 设置。在 JDK 1.8 和 CentOS 7.8 上停止 8171 节点,同时保持 8070 可用,以复现启动失败;当应用仍能通过存活的 manager 继续启动和运行时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, spring
领域
distributed-systems
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。