codingapi / codingapi/tx-lcn

当下游服务出现异常,下游服务catch了异常那上游服务的事务基于LCN会回滚吗

Offen
#569 0 Kommentare 0 Reaktionen 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
当下游服务出现异常,下游服务catch了,异常那上游服务的事务基于LCN会回滚不。我的理解是不管下游服务发生异常 会发出通知给TM。TM会通知上游服务回滚事务。而不是通过下游服务抛出异常,上游服务拿到异常通过本地事务进行回滚。

目前的场景是 A,B两个服务 A服务调用B服务,B服务发生了异常,被catch住了。A服务事务不回滚。

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

### 3. Exception Stacktrace

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

### 4. Tour Idea

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start by reviewing the TX-LCN 5.0.2 transaction flow for an A service calling a B service when B catches an exception, including how the TM is notified. The issue provides no source files, tests, or stack trace, so first identify the relevant transaction and TM entry points. Done means confirming the expected rollback behavior and documenting or reproducing the result.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
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.