apache / apache/incubator-seata
关于saga注解CompensationBusinessAction的使用问题
- Dominant language
- Java
- Stars
- 26k
- Forks
- 8.8k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 4
Description
我在[@5300](https://github.com/apache/incubator-seata/pull/5300)的测试用例类NormalSagaAction中发现saga注解是基于@LocalTCC和@CompensationBusinessAction来使用的。但是我在[@553](https://github.com/apache/incubator-seata-samples/pull/553) 中却发现saga注解是基于@LocalService+@SagaTransactional来使用的。
这给我造成了困惑,我查看了commit提交记录,发现[@5300](https://github.com/apache/incubator-seata/pull/5300)的提交记录是在2024年,而[@553](https://github.com/apache/incubator-seata-samples/pull/553) 的提交记录却停留在2022年,所以请帮我确认2个问题:
问题1:[@553](https://github.com/apache/incubator-seata-samples/pull/553) saga测试用例是否为过时的?
问题2:在使用saga注解时,是基于@LocalTCC和@CompensationBusinessAction来实现的吗?如果是,官方可否提供配套的测试用例?
Contributor guide
Research direction
Compare the Saga usage in the NormalSagaAction test from PR 5300 with the examples in PR 553, focusing on @LocalTCC, @CompensationBusinessAction, @LocalService, and @SagaTransactional. Check which pattern the current project supports, then document the answer and provide or identify an official test case showing the supported annotation usage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100