tx-manager重启,客户端会重复
- Dominant language
- Java
- Stars
- 4.2k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
- [ ] 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-manager连接配置的是域名,修改成主机地址没有问题了,但是问题原因是什么呢
### 2. Environment:
- JDK version: 8
- OS: MAC
- TX-LCN version: 5.0.2
- Others: idea
### 3. Exception Stacktrace
```
2019-11-11 22:51:31.292 INFO [com.danke.galaxy-danke-galaxy-common-transaction,,,] 6767 --- [m-rpc-service-0] c.c.t.t.t.transaction.InitClientService : Registered TC: com.danke.galaxy-danke-galaxy-demo-c1:30001
2019-11-11 22:51:31.292 INFO [com.danke.galaxy-danke-galaxy-common-transaction,,,] 6767 --- [m-rpc-service-2] c.c.t.t.t.transaction.InitClientService : Registered TC: com.danke.galaxy-danke-galaxy-demo-c2:30002
2019-11-11 22:51:31.292 INFO [com.danke.galaxy-danke-galaxy-common-transaction,,,] 6767 --- [m-rpc-service-1] c.c.t.t.t.transaction.InitClientService : Registered TC: com.danke.galaxy-danke-galaxy-demo-c2:30002
2019-11-11 22:51:31.300 INFO [com.danke.galaxy-danke-galaxy-common-transaction,,,] 6767 --- [m-rpc-service-1] c.c.t.t.s.s.impl.ManagerServiceImpl : Acquired machine id 64, max machine id is: 2251799813685246
2019-11-11 22:51:31.307 INFO [com.danke.galaxy-danke-galaxy-common-transaction,,,] 6767 --- [m-rpc-service-0] c.c.t.t.s.s.impl.ManagerServiceImpl : Acquired machine id 65, max machine id is: 2251799813685246
2019-11-11 22:51:31.310 INFO [com.danke.galaxy-danke-galaxy-common-transaction,,,] 6767 --- [m-rpc-service-2] c.c.t.t.s.s.impl.ManagerServiceImpl : Acquired machine id 66, max machine id is: 2251799813685246
```
### 4. Tour Idea
Contributor guide
No contributing guide indexed for this repository
Research direction
The report names InitClientService and ManagerServiceImpl in the log output but provides no source file or test. Start by tracing client registration and machine-ID acquisition for hostname-based manager connections, then compare this with the host-address configuration. Done should establish the cause of duplicate registrations and define a verified fix or clear explanation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100