codingapi / codingapi/tx-lcn

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

Open
#349 0 comments 1 reaction 0 assignees View on GitHub
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
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.