codingapi / codingapi/tx-lcn

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

Offen
#349 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
4.2k
Forks
1.4k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

- [ ] 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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

No source files, tests, or entry points are named, and no stack trace is provided. Start by reproducing the repeated service-A-to-service-B update scenario on TX-LCN 5.0.2.RELEASE, then trace the transaction-group lifecycle and database locking around the shared row. Done means the calls no longer join a nonexistent group or fail with a locked resource, while data remains consistent.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
databases, distributed-systems
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.