codingapi / codingapi/tx-lcn

当两个服务操作相同表的相同id数据时,会报错无法加入一个不存在的分布式事务

Aperta
#349 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
4.2k
Fork
1.4k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

- [ ] 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
1.服务A和服务B均操作相同表的同一条数据(必须是同一条数据,非常规操作),进行更新操作。
2.调用链为服务A->服务B,服务A注解为TXC,服务B为TXC,服务A为事务开始服务。
3.连续多次请求时,服务B固定报错attempts to join the non-existent transaction group,且group id相同。或产生 Error updating database. Cause: java.sql.SQLException: resource is locked! place try again later.异常。
4.此bug会引起数据一致性问题。

### 2. Environment:
- JDK version:1.8.1_181
- OS:windows
- TX-LCN version:5.0.2.RELEASE
- Others:null

### 3. Exception Stacktrace

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

### 4. Tour Idea

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.