apache / apache/incubator-seata

SAGA Loop循环事务补偿入参问题咨询

Open
#6,776 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
26k
Forks
8.8k
Avg merge
1d 8h
Merged PRs (30d)
4

Description

### Ⅰ. Issue Description
SAGA Loop循环事务补偿入参问题咨询。

### Ⅱ. Describe what happened
使用SAGA Loop循环事务时,当事务发生补偿,循环事务里的单个子事务补偿方法入参无法获取到集合单个元素及集合下标。
试了test用例中的org.apache.seata.saga.engine.db.StateMachineDBTests.testSimpleStateMachineWithLoopCompensate()方法,似乎也无法获取到。
请问需要如何配置才能在Loop子事务补偿时入参获取到集合单个元素信息。

### Ⅵ. Environment:

- JDK version(e.g. `java -version`):8
- Seata client/server version: 2.0.0

Contributor guide

Open the contributing guide

Research direction

Start with org.apache.seata.saga.engine.db.StateMachineDBTests.testSimpleStateMachineWithLoopCompensate() using JDK 8 and Seata 2.0.0. Trace how the Loop child compensation receives arguments and whether the collection element and index are propagated. Done means establishing the required configuration or confirming the behavior as a defect with a reproducible test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.