codingapi / codingapi/tx-lcn

report造成的不一致性问题

Offen
#419 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

```
String unitId = (String) paramList.get(2);
String transactionType = (String) paramList.get(3);
try {
transactionCleanTemplate.cleanWithoutAspectLog(groupId, unitId, transactionType, state);
} catch (TransactionClearException e) {
txLogger.error(groupId, unitId, "notify group", "{} > cleanWithoutAspectLog transaction error.", transactionType);
}
// 上报Manager,上报直到成功.
tmReporter.reportTransactionState(groupId, null, xExceptionParams.NOTIFY_GROUP_ERROR, state);
```

* 目前看也只是一次性上报,这个过程出现异常会造成事务不一致的问题``

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start by tracing the notify-group flow around transactionCleanTemplate.cleanWithoutAspectLog and tmReporter.reportTransactionState. Reproduce the exception path and inspect how transaction state reporting behaves after a failed cleanup; done means the reported state cannot leave the transaction inconsistent when this process encounters an exception.

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.